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