The Battle for Wesnoth  1.15.8+dev
Public Member Functions | List of all members
test_throw::implementation::lexical_caster< long long, From, void, std::enable_if_t< std::is_same< From, const char * >::value||std::is_same< From, char * >::value > > Struct Template Reference

Specialized conversion class. More...

Public Member Functions

long long operator() (From value, utils::optional< long long > fallback) const
 

Detailed Description

template<class From>
struct test_throw::implementation::lexical_caster< long long, From, void, std::enable_if_t< std::is_same< From, const char * >::value||std::is_same< From, char * >::value > >

Specialized conversion class.

Specialized for returning a long long from a (const) char*.

Note
is separate from the other signed types since a long long has a performance penalty at 32 bit systems.

Definition at line 192 of file test_lexical_cast.cpp.

Member Function Documentation

◆ operator()()

template<class From >
long long test_throw::implementation::lexical_caster< long long, From, void, std::enable_if_t< std::is_same< From, const char * >::value||std::is_same< From, char * >::value > >::operator() ( From  value,
utils::optional< long long >  fallback 
) const
inline

Definition at line 199 of file test_lexical_cast.cpp.


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