The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Public Attributes | List of all members
utils::charconv_buffer< TNum > Struct Template Reference

#include <charconv.hpp>

Public Member Functions

 charconv_buffer ()
 
 charconv_buffer (TNum num)
 
void set_value (TNum num)
 
std::string_view get_view () const
 
std::string to_string () const
 

Public Attributes

std::array< char, utils::charconv::buffer_size< TNum > > buffer
 
size_t size
 

Detailed Description

template<typename TNum>
struct utils::charconv_buffer< TNum >

Definition at line 98 of file charconv.hpp.

Constructor & Destructor Documentation

◆ charconv_buffer() [1/2]

template<typename TNum >
utils::charconv_buffer< TNum >::charconv_buffer ( )
inline

Definition at line 103 of file charconv.hpp.

◆ charconv_buffer() [2/2]

template<typename TNum >
utils::charconv_buffer< TNum >::charconv_buffer ( TNum  num)
inline

Definition at line 108 of file charconv.hpp.

References utils::charconv_buffer< TNum >::set_value().

Member Function Documentation

◆ get_view()

template<typename TNum >
std::string_view utils::charconv_buffer< TNum >::get_view ( ) const
inline

◆ set_value()

template<typename TNum >
void utils::charconv_buffer< TNum >::set_value ( TNum  num)
inline

◆ to_string()

template<typename TNum >
std::string utils::charconv_buffer< TNum >::to_string ( ) const
inline

Member Data Documentation

◆ buffer

template<typename TNum >
std::array<char, utils::charconv::buffer_size<TNum> > utils::charconv_buffer< TNum >::buffer

◆ size

template<typename TNum >
size_t utils::charconv_buffer< TNum >::size

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