Vcsn  2.3
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 }
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