TrinityCore
Loading...
Searching...
No Matches
Trinity::ChatCommands::Variant< T1, Ts > Struct Template Reference

#include <ChatCommandTags.h>

+ Inheritance diagram for Trinity::ChatCommands::Variant< T1, Ts >:

Public Types

using base = std::variant< T1, Ts... >
 
using first_type = Impl::ChatCommands::tag_base_t< T1 >
 

Public Member Functions

first_type operator* () const
 
 operator first_type () const
 
bool operator! () const
 
template<typename T >
Variantoperator= (T &&arg)
 
template<size_t index>
constexpr decltype(auto) get ()
 
template<size_t index>
constexpr decltype(auto) get () const
 
template<typename type >
constexpr decltype(auto) get ()
 
template<typename type >
constexpr decltype(auto) get () const
 
template<typename T >
constexpr decltype(auto) visit (T &&arg)
 
template<typename T >
constexpr decltype(auto) visit (T &&arg) const
 
template<typename T >
constexpr bool holds_alternative () const
 

Detailed Description

template<typename T1, typename... Ts>
struct Trinity::ChatCommands::Variant< T1, Ts >

Definition at line 251 of file ChatCommandTags.h.

Member Typedef Documentation

◆ base

template<typename T1 , typename... Ts>
using Trinity::ChatCommands::Variant< T1, Ts >::base = std::variant<T1, Ts...>

Definition at line 253 of file ChatCommandTags.h.

◆ first_type

template<typename T1 , typename... Ts>
using Trinity::ChatCommands::Variant< T1, Ts >::first_type = Impl::ChatCommands::tag_base_t<T1>

Definition at line 255 of file ChatCommandTags.h.

Member Function Documentation

◆ get() [1/4]

template<typename T1 , typename... Ts>
template<size_t index>
constexpr decltype(auto) Trinity::ChatCommands::Variant< T1, Ts >::get ( )
inlineconstexpr

Definition at line 276 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ get() [2/4]

template<typename T1 , typename... Ts>
template<typename type >
constexpr decltype(auto) Trinity::ChatCommands::Variant< T1, Ts >::get ( )
inlineconstexpr

Definition at line 280 of file ChatCommandTags.h.

◆ get() [3/4]

template<typename T1 , typename... Ts>
template<size_t index>
constexpr decltype(auto) Trinity::ChatCommands::Variant< T1, Ts >::get ( ) const
inlineconstexpr

Definition at line 278 of file ChatCommandTags.h.

◆ get() [4/4]

template<typename T1 , typename... Ts>
template<typename type >
constexpr decltype(auto) Trinity::ChatCommands::Variant< T1, Ts >::get ( ) const
inlineconstexpr

Definition at line 282 of file ChatCommandTags.h.

◆ holds_alternative()

template<typename T1 , typename... Ts>
template<typename T >
constexpr bool Trinity::ChatCommands::Variant< T1, Ts >::holds_alternative ( ) const
inlineconstexpr

Definition at line 290 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ operator first_type()

template<typename T1 , typename... Ts>
Trinity::ChatCommands::Variant< T1, Ts >::operator first_type ( ) const
inline

Definition at line 262 of file ChatCommandTags.h.

+ Here is the call graph for this function:

◆ operator!()

template<typename T1 , typename... Ts>
bool Trinity::ChatCommands::Variant< T1, Ts >::operator! ( ) const
inline

Definition at line 267 of file ChatCommandTags.h.

◆ operator*()

template<typename T1 , typename... Ts>
first_type Trinity::ChatCommands::Variant< T1, Ts >::operator* ( ) const
inline

Definition at line 257 of file ChatCommandTags.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

template<typename T1 , typename... Ts>
template<typename T >
Variant & Trinity::ChatCommands::Variant< T1, Ts >::operator= ( T &&  arg)
inline

Definition at line 273 of file ChatCommandTags.h.

◆ visit() [1/2]

template<typename T1 , typename... Ts>
template<typename T >
constexpr decltype(auto) Trinity::ChatCommands::Variant< T1, Ts >::visit ( T &&  arg)
inlineconstexpr

Definition at line 285 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ visit() [2/2]

template<typename T1 , typename... Ts>
template<typename T >
constexpr decltype(auto) Trinity::ChatCommands::Variant< T1, Ts >::visit ( T &&  arg) const
inlineconstexpr

Definition at line 287 of file ChatCommandTags.h.


The documentation for this struct was generated from the following file: