SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
format_int Class Reference

Fast integer formatter. More...

#include <format.h>

Public Member Functions

 format_int (int value)
 
 format_int (long value)
 
 format_int (long long value)
 
 format_int (unsigned value)
 
 format_int (unsigned long value)
 
 format_int (unsigned long long value)
 
auto size () const -> size_t
 Returns the number of characters written to the output buffer. More...
 
auto data () const -> const char *
 Returns a pointer to the output buffer content. More...
 
auto c_str () const -> const char *
 Returns a pointer to the output buffer content with terminating null character appended.
 
auto str () const -> std::string
 Returns the content of the output buffer as an std::string. More...
 

Detailed Description

Fast integer formatter.

Member Function Documentation

◆ data()

auto format_int::data ( ) const -> const char*
inline

Returns a pointer to the output buffer content.

No terminating null character is appended.

◆ size()

auto format_int::size ( ) const -> size_t
inline

Returns the number of characters written to the output buffer.

◆ str()

auto format_int::str ( ) const -> std::string
inline

Returns the content of the output buffer as an std::string.