ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
Public Member Functions | List of all members
format_int

#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
 
auto data () const -> const char *
 
auto c_str () const -> const char *
 
auto str () const -> std::string
 

Detailed Description

Fast integer formatter.

Member Function Documentation

◆ c_str()

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

Returns a pointer to the output buffer content with terminating null character appended.

◆ 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

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


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