libcarla/include/system/rpc/detail/any.h

22 lines
450 B
C
Raw Permalink Normal View History

2024-10-18 13:19:59 +08:00
#pragma once
#ifndef ANY_H_4G3QUOAN
#define ANY_H_4G3QUOAN
#include "rpc/detail/invoke.h"
#include "rpc/detail/if.h"
#include "rpc/detail/bool.h"
namespace rpc {
namespace detail {
//! \brief Evaluates to true_type if any of its arguments is true_type.
template <typename... T> struct any : false_ {};
template <typename H, typename... T>
struct any<H, T...> : if_<H, true_, any<T...>> {};
}
}
#endif /* end of include guard: ANY_H_4G3QUOAN */