Vcsn  2.4
Be Rational
initializer_list.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <algorithm>
4 #include <initializer_list>
5 
6 namespace vcsn
7 {
8 
10  template <typename T, typename U>
11  inline
12  bool
13  has(std::initializer_list<T> s, const U& e)
14  {
15  return std::find(begin(s), end(s), e) != std::end(s);
16  }
17 }
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