The Battle for Wesnoth  1.15.12+dev
Public Member Functions | List of all members
test_throw::implementation::lexical_caster< To, From, std::enable_if_t< std::is_unsigned_v< To > &&!std::is_same_v< To, unsigned long long > >, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > > Struct Template Reference

Specialized conversion class. More...

Public Member Functions

To operator() (From value, std::optional< To > fallback) const
 

Detailed Description

template<class To, class From>
struct test_throw::implementation::lexical_caster< To, From, std::enable_if_t< std::is_unsigned_v< To > &&!std::is_same_v< To, unsigned long long > >, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > >

Specialized conversion class.

Specialized for returning a unsigned type from a (const) char*.

Definition at line 431 of file test_lexical_cast.cpp.

Member Function Documentation

◆ operator()()

template<class To , class From >
To test_throw::implementation::lexical_caster< To, From, std::enable_if_t< std::is_unsigned_v< To > &&!std::is_same_v< To, unsigned long long > >, std::enable_if_t< std::is_same_v< From, const char * >||std::is_same_v< From, char * > > >::operator() ( From  value,
std::optional< To >  fallback 
) const
inline

Definition at line 438 of file test_lexical_cast.cpp.


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