hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
is_any.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_IS_ANY_HPP
7 #define IROHA_IS_ANY_HPP
8 
9 #include <type_traits>
10 
11 namespace iroha {
12 
13  template <typename T, typename... Rest>
14  struct is_any : std::false_type {};
15 
16  template <typename T, typename First>
17  struct is_any<T, First> : std::is_same<T, First> {};
18 
26  template <typename T, typename First, typename... Rest>
27  struct is_any<T, First, Rest...>
28  : std::integral_constant<bool,
29  std::is_same<T, First>::value
30  || is_any<T, Rest...>::value> {};
31 
32 } // namespace iroha
33 
34 #endif // IROHA_IS_ANY_HPP
Definition: block_query.hpp:16
Definition: is_any.hpp:14