TrinityCore
Trinity::ChatCommands::ExactSequence< chars > Struct Template Reference

#include <ChatCommandTags.h>

+ Inheritance diagram for Trinity::ChatCommands::ExactSequence< chars >:

Public Types

using value_type = void
 
- Public Types inherited from Trinity::Impl::ChatCommands::ContainerTag
using ChatCommandResult = Trinity::Impl::ChatCommands::ChatCommandResult
 

Public Member Functions

ChatCommandResult TryConsume (ChatHandler const *handler, std::string_view args) const
 

Static Private Attributes

static constexpr std::array< char, sizeof...(chars)> _storage = { chars... }
 
static constexpr std::string_view _string = { _storage.data(), std::string_view::traits_type::length(_storage.data()) }
 

Detailed Description

template<char... chars>
struct Trinity::ChatCommands::ExactSequence< chars >

Definition at line 87 of file ChatCommandTags.h.

Member Typedef Documentation

◆ value_type

template<char... chars>
using Trinity::ChatCommands::ExactSequence< chars >::value_type = void

Definition at line 89 of file ChatCommandTags.h.

Member Function Documentation

◆ TryConsume()

template<char... chars>
ChatCommandResult Trinity::ChatCommands::ExactSequence< chars >::TryConsume ( ChatHandler const *  handler,
std::string_view  args 
) const
inline

Definition at line 91 of file ChatCommandTags.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ _storage

template<char... chars>
constexpr std::array<char, sizeof...(chars)> Trinity::ChatCommands::ExactSequence< chars >::_storage = { chars... }
staticconstexprprivate

Definition at line 107 of file ChatCommandTags.h.

◆ _string

template<char... chars>
constexpr std::string_view Trinity::ChatCommands::ExactSequence< chars >::_string = { _storage.data(), std::string_view::traits_type::length(_storage.data()) }
staticconstexprprivate

Definition at line 109 of file ChatCommandTags.h.


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