Vcsn  2.2a
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 
7 namespace vcsn
8 {
10  template <typename T, typename Allocator = std::allocator<T>>
11  ATTRIBUTE_PURE
12  bool
13  has(const std::deque<T, Allocator>& s, const T& e)
14  {
15  return boost::find(s, 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:25
Definition: a-star.hh:8