OpenMining  0.01
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
contains.h
Go to the documentation of this file.
1 #ifndef contains_h
2 #define contains_h
3 
4 namespace utils
5 {
6  template <class Tcontainer, class Tkey>
7  bool contains(Tcontainer& container, Tkey& key)
8  {
9  auto it = container.find(key);
10  if (it == container.end()) { return false; }
11  return true;
12  }
13 }
14 
15 #endif
16 
bool contains(Tcontainer &container, Tkey &key)
Definition: contains.h:7