Vcsn  2.1
Be Rational
initializer_list.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <initializer_list>
4 
5 namespace vcsn
6 {
7 
9  template <typename T, typename U>
10  inline
11  bool
12  has(const std::initializer_list<T>& s, const U& e)
13  {
14  return std::find(begin(s), end(s), e) != std::end(s);
15  }
16 }
ATTRIBUTE_PURE bool has(const std::deque< T, Allocator > &s, const T &e)
Whether e is member of s.
Definition: deque.hh:13