AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Impl::ChatCommands::ArgInfo< std::vector< T >, void > Struct Template Reference

#include "ChatCommandArgs.h"

Static Public Member Functions

static ChatCommandResult TryConsume (std::vector< T > &val, ChatHandler const *handler, std::string_view args)
 

Detailed Description

template<typename T>
struct Acore::Impl::ChatCommands::ArgInfo< std::vector< T >, void >

Member Function Documentation

◆ TryConsume()

template<typename T >
static ChatCommandResult Acore::Impl::ChatCommands::ArgInfo< std::vector< T >, void >::TryConsume ( std::vector< T > &  val,
ChatHandler const *  handler,
std::string_view  args 
)
inlinestatic
223 {
224 val.clear();
225 ChatCommandResult next = ArgInfo<T>::TryConsume(val.emplace_back(), handler, args);
226
227 if (!next)
228 return next;
229
230 while (ChatCommandResult next2 = ArgInfo<T>::TryConsume(val.emplace_back(), handler, *next))
231 next = std::move(next2);
232
233 val.pop_back();
234 return next;
235 }
Definition: ChatCommandHelpers.h:100