Vcsn  2.8
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 {
10  template <typename Map, typename Key>
11  auto
12  has(const Map& s, const Key& e)
13  -> decltype(s.find(e) != std::end(s))
14  {
15  return s.find(e) != std::end(s);
16  }
17 }
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:26
Definition: a-star.hh:8