Vcsn  2.2a
Be Rational
bimap.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <boost/bimap.hpp>
4 
6 
7 namespace vcsn
8 {
9 
11  template <typename Map, typename Key>
12  inline
13  auto
14  has(const Map& s, const Key& e)
15  -> decltype(s.find(e) != std::end(s))
16  {
17  return s.find(e) != std::end(s);
18  }
19 
20 }
ATTRIBUTE_PURE bool has(const boost::container::flat_set< Key, Compare, Allocator > &s, const Key &e)
Whether e is member of s.
Definition: setalpha.hh:25
Definition: a-star.hh:8