libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ do_put() [6/8]

template<typename _CharT, typename _OutIter>
_OutIter std::num_put< _CharT, _OutIter >::do_put ( iter_type __s,
ios_base & __io,
char_type __fill,
const void * __v ) const
protectedvirtual

Numeric formatting.

These functions do the work of formatting numeric values and inserting them into a stream. This function is a hook for derived classes to change the value returned.

Parameters
__sStream to write to.
__ioSource of locale and flags.
__fillChar_type to use for filling.
__vValue to format and insert.
Returns
Iterator after writing.

Definition at line 1203 of file locale_facets.tcc.

1206 {
1207 const ios_base::fmtflags __flags = __io.flags();
1211
1212#pragma GCC diagnostic push
1213#pragma GCC diagnostic ignored "-Wlong-long"
1214 typedef __gnu_cxx::__conditional_type<(sizeof(const void*)
1215 <= sizeof(unsigned long)),
1216 unsigned long, unsigned long long>::__type _UIntPtrType;
1217#pragma GCC diagnostic pop
1218
1220 reinterpret_cast<_UIntPtrType>(__v));
1221 __io.flags(__flags);
1222 return __s;
1223 }
iter_type _M_insert_int(iter_type, ios_base &__io, char_type __fill, _ValueT __v) const
Primary class template num_put.

References num_put(), _M_insert_int(), std::ios_base::basefield, std::ios_base::flags(), std::ios_base::fmtflags, std::ios_base::hex, std::ios_base::showbase, and std::ios_base::uppercase.

Here is the call graph for this function: