The Battle for Wesnoth  1.19.8+dev
Public Member Functions | List of all members
implementation::lexical_caster< To, std::string_view, std::enable_if_t< std::is_arithmetic_v< To > >, void > Struct Template Reference

Specialized conversion class. More...

#include <lexical_cast.hpp>

Public Member Functions

To operator() (std::string_view str, utils::optional< To > fallback) const
 

Detailed Description

template<typename To>
struct implementation::lexical_caster< To, std::string_view, std::enable_if_t< std::is_arithmetic_v< To > >, void >

Specialized conversion class.

Specialized for returning arithmetic from a string_view, also used by std::string and (const) char*

Definition at line 219 of file lexical_cast.hpp.

Member Function Documentation

◆ operator()()

template<typename To >
To implementation::lexical_caster< To, std::string_view, std::enable_if_t< std::is_arithmetic_v< To > >, void >::operator() ( std::string_view  str,
utils::optional< To >  fallback 
) const
inline

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