AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
TypeList.h File Reference
#include <cstddef>
#include <utility>

Go to the source code of this file.

Classes

struct  Acore::type_list< Ts >
 Provide an empty tag type containing the specified Ts. More...
 
struct  Acore::Impl::list_size< type_list< Ts... > >
 

Namespaces

namespace  Acore
 
namespace  Acore::Impl
 

Concepts

concept  Acore::AnyTypeList
 Satisfied only by Acore::type_list specializations.
 

Functions

template<typename... Ts, typename Func >
constexpr void Acore::Impl::for_each (type_list< Ts... >, Func &&f)
 
template<typename... Ts, typename Pred >
constexpr std::size_t Acore::Impl::count_if (type_list< Ts... >, Pred pred)
 
template<typename... Ts, typename Pred >
constexpr bool Acore::Impl::any_of (type_list< Ts... >, Pred pred)
 
template<AnyTypeList List, typename Func >
constexpr void Acore::for_each (Func &&f)
 Invoke the specified f once for each type in the specified List, in declaration order.
 
template<AnyTypeList List, typename Pred >
constexpr std::size_t Acore::count_if (Pred pred)
 Return the number of types in the specified List for which the specified pred returns true.
 
template<AnyTypeList List, typename Pred >
constexpr bool Acore::any_of (Pred pred)
 Return true if the specified pred returns true for any type in the specified List, and false otherwise.
 

Variables

template<typename T >
constexpr bool Acore::Impl::is_type_list = false
 
template<typename... Ts>
constexpr bool Acore::Impl::is_type_list< type_list< Ts... > > = true
 
template<AnyTypeList List>
constexpr std::size_t Acore::size_v = Impl::list_size<List>::value
 The number of types in the specified List.