ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
Anagrams.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*---------------------------- File Anagrams.h -----------------------------*/
3/*--------------------------------------------------------------------------*/
26/*--------------------------------------------------------------------------*/
27/*----------------------------- DEFINITIONS --------------------------------*/
28/*--------------------------------------------------------------------------*/
29
30#ifndef __ADS_Anagrams
31 #define __ADS_Anagrams
32/* self-identification: #endif constant */
33
34/*--------------------------------------------------------------------------*/
35/*------------------------------ INCLUDES ----------------------------------*/
36/*--------------------------------------------------------------------------*/
37
38#include "ADS/Contract.h"
39
40#include <algorithm>
41#include <map>
42#include <set>
43#include <string>
44#include <vector>
45
46/*--------------------------------------------------------------------------*/
47/*--------------------------- NAMESPACE ------------------------------------*/
48/*--------------------------------------------------------------------------*/
49
50namespace ADS
51{
52
83template< class W , class P >
84std::set< std::string > anagrams( const std::string & s , W && word ,
85 P && prefix );
86
87/*--------------------------------------------------------------------------*/
88
89} // end( namespace ADS )
90
91/*--------------------------------------------------------------------------*/
92/*-------------------------- IMPLEMENTATION --------------------------------*/
93/*--------------------------------------------------------------------------*/
94
95#include "ADS/backtrack/impl/Anagrams.tpp"
96
97/*--------------------------------------------------------------------------*/
98
99#endif /* Anagrams.h included */
100
101/*--------------------------------------------------------------------------*/
102/*-------------------------- End File Anagrams.h ---------------------------*/
103/*--------------------------------------------------------------------------*/
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
std::set< std::string > anagrams(const std::string &s, W &&word, P &&prefix)
the anagrams of made of words for which word( w ) is true, prefix( w ) being true if begins some wo...
Definition ADT.h:96