17 #ifndef HH_SENF_Utils_algorithm_ 18 #define HH_SENF_Utils_algorithm_ 1 22 #include <boost/ptr_container/ptr_map.hpp> 23 #include <boost/ptr_container/ptr_unordered_map.hpp> 29 template <
typename InputIterator,
typename ValueType>
30 bool contains(InputIterator first, InputIterator last, ValueType
const & value);
32 template <
typename Container,
typename ValueType>
33 bool contains(Container
const & container, ValueType
const & value);
35 template <
typename ValueType>
36 bool contains(std::set<ValueType>
const & container, ValueType
const & value);
38 template <
typename KeyType,
typename ValueType>
39 bool contains(std::map<KeyType, ValueType>
const & container, KeyType
const & key);
41 template <
typename KeyType,
typename ValueType>
42 bool contains(boost::ptr_map<KeyType, ValueType>
const & container, KeyType
const & key);
44 template <
typename KeyType,
typename ValueType>
45 bool contains(boost::ptr_unordered_map<KeyType, ValueType>
const & container, KeyType
const & key);
47 bool contains(std::string
const &
str, std::string
const & substr);
48 bool contains(std::string
const & str,
char c);
std::string str(T const &t)
Get string representation.
bool contains(InputIterator first, InputIterator last, ValueType const &value)