Vcsn  2.2
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(std::initializer_list<T> s, const U& e)
13  {
14  return std::find(begin(s), end(s), e) != std::end(s);
15  }
16 }
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