1 #pragma once 2 3 #ifndef ANY_H_4G3QUOAN 4 #define ANY_H_4G3QUOAN 5 6 #include "rpc/detail/invoke.h" 7 #include "rpc/detail/if.h" 8 #include "rpc/detail/bool.h" 9 10 namespace rpc { 11 namespace detail { 12 13 //! \brief Evaluates to true_type if any of its arguments is true_type. 14 template <typename... T> struct any : false_ {}; 15 16 template <typename H, typename... T> 17 struct any<H, T...> : if_<H, true_, any<T...>> {}; 18 } 19 } 20 21 #endif /* end of include guard: ANY_H_4G3QUOAN */ 22