Vcsn  2.3
Be Rational
deque.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <deque>
4 
5 #include <boost/range/algorithm/find.hpp>
6 
8 
9 namespace vcsn
10 {
12  template <typename T, typename Allocator = std::allocator<T>>
13  ATTRIBUTE_PURE
14  bool
15  has(const std::deque<T, Allocator>& s, const T& e)
16  {
17  return boost::find(s, e) != std::end(s);
18  }
19 }
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