25 lines
310 B
C++
25 lines
310 B
C++
#pragma once
|
|
|
|
#define EXERCISM_RUN_ALL_TESTS
|
|
|
|
#include <list>
|
|
#include <string>
|
|
|
|
|
|
namespace anagram {
|
|
|
|
typedef std::list<std::string> StringContainer;
|
|
|
|
|
|
class anagram
|
|
{
|
|
std::string key;
|
|
|
|
public:
|
|
|
|
anagram(const std::string &_key);
|
|
|
|
StringContainer matches(const StringContainer &input) const;
|
|
};
|
|
|
|
}
|