Rosetta
Public Types | Public Member Functions | Public Attributes | List of all members
detail::int_writer< OutputIt, Char, UInt > Struct Template Reference

#include <format.h>

Public Types

enum  { sep_size = 1 }
 
using iterator = remove_reference_t< decltype(reserve(std::declval< OutputIt & >(), 0))>
 

Public Member Functions

string_view get_prefix () const
 
template<typename Int >
 int_writer (OutputIt output, locale_ref loc, Int value, const basic_format_specs< Char > &s)
 
void on_dec ()
 
void on_hex ()
 
void on_bin ()
 
void on_oct ()
 
void on_num ()
 
void on_chr ()
 
FMT_NORETURN void on_error ()
 

Public Attributes

OutputIt out
 
locale_ref locale
 
const basic_format_specs< Char > & specs
 
UInt abs_value
 
char prefix [4]
 
unsigned prefix_size
 

Member Typedef Documentation

◆ iterator

template<typename OutputIt , typename Char , typename UInt >
using detail::int_writer< OutputIt, Char, UInt >::iterator = remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>

Member Enumeration Documentation

◆ anonymous enum

template<typename OutputIt , typename Char , typename UInt >
anonymous enum
Enumerator
sep_size 

Constructor & Destructor Documentation

◆ int_writer()

template<typename OutputIt , typename Char , typename UInt >
template<typename Int >
detail::int_writer< OutputIt, Char, UInt >::int_writer ( OutputIt  output,
locale_ref  loc,
Int  value,
const basic_format_specs< Char > &  s 
)
inline

Member Function Documentation

◆ get_prefix()

template<typename OutputIt , typename Char , typename UInt >
string_view detail::int_writer< OutputIt, Char, UInt >::get_prefix ( ) const
inline

◆ on_bin()

template<typename OutputIt , typename Char , typename UInt >
void detail::int_writer< OutputIt, Char, UInt >::on_bin ( )
inline

◆ on_chr()

template<typename OutputIt , typename Char , typename UInt >
void detail::int_writer< OutputIt, Char, UInt >::on_chr ( )
inline

◆ on_dec()

template<typename OutputIt , typename Char , typename UInt >
void detail::int_writer< OutputIt, Char, UInt >::on_dec ( )
inline

◆ on_error()

template<typename OutputIt , typename Char , typename UInt >
FMT_NORETURN void detail::int_writer< OutputIt, Char, UInt >::on_error ( )
inline

References FMT_THROW.

◆ on_hex()

template<typename OutputIt , typename Char , typename UInt >
void detail::int_writer< OutputIt, Char, UInt >::on_hex ( )
inline

◆ on_num()

template<typename OutputIt , typename Char , typename UInt >
void detail::int_writer< OutputIt, Char, UInt >::on_num ( )
inline

◆ on_oct()

template<typename OutputIt , typename Char , typename UInt >
void detail::int_writer< OutputIt, Char, UInt >::on_oct ( )
inline

Member Data Documentation

◆ abs_value

template<typename OutputIt , typename Char , typename UInt >
UInt detail::int_writer< OutputIt, Char, UInt >::abs_value

◆ locale

template<typename OutputIt , typename Char , typename UInt >
locale_ref detail::int_writer< OutputIt, Char, UInt >::locale

◆ out

template<typename OutputIt , typename Char , typename UInt >
OutputIt detail::int_writer< OutputIt, Char, UInt >::out

◆ prefix

template<typename OutputIt , typename Char , typename UInt >
char detail::int_writer< OutputIt, Char, UInt >::prefix[4]

◆ prefix_size

template<typename OutputIt , typename Char , typename UInt >
unsigned detail::int_writer< OutputIt, Char, UInt >::prefix_size

◆ specs

template<typename OutputIt , typename Char , typename UInt >
const basic_format_specs<Char>& detail::int_writer< OutputIt, Char, UInt >::specs

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