BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslfmt Namespace Reference
Group bsl » Package bslfmt » bslfmt_enablestreamedformatter | Group bsl » Package bslfmt » bslfmt_format_arg | Group bsl » Package bslfmt » bslfmt_format_args | Group bsl » Package bslfmt » bslfmt_format_context | Group bsl » Package bslfmt » bslfmt_format_imp | Group bsl » Package bslfmt » bslfmt_format_string | Group bsl » Package bslfmt » bslfmt_formaterror | Group bsl » Package bslfmt » bslfmt_formatparsecontext | Group bsl » Package bslfmt » bslfmt_formatspecificationparser | Group bsl » Package bslfmt » bslfmt_formatterbool | Group bsl » Package bslfmt » bslfmt_formattercharacter | Group bsl » Package bslfmt » bslfmt_formattercharutil | Group bsl » Package bslfmt » bslfmt_formatterfloating | Group bsl » Package bslfmt » bslfmt_formatterintegral | Group bsl » Package bslfmt » bslfmt_formatterintegralbase | Group bsl » Package bslfmt » bslfmt_formatterpointer | Group bsl » Package bslfmt » bslfmt_formatterspecificationnumericvalue | Group bsl » Package bslfmt » bslfmt_formatterstring | Group bsl » Package bslfmt » bslfmt_formattertestutil | Group bsl » Package bslfmt » bslfmt_formatterunicodedata | Group bsl » Package bslfmt » bslfmt_mockformatcontext | Group bsl » Package bslfmt » bslfmt_mockparsecontext | Group bsl » Package bslfmt » bslfmt_padutil | Group bsl » Package bslfmt » bslfmt_print_imp | Group bsl » Package bslfmt » bslfmt_print_ostream_imp | Group bsl » Package bslfmt » bslfmt_standardformatspecification | Group bsl » Package bslfmt » bslfmt_streamed | Group bsl » Package bslfmt » bslfmt_streamedformatter | Group bsl » Package bslfmt » bslfmt_testspecificationgenerator | Group bsl » Package bslfmt » bslfmt_unicodecodepoint

Classes

class  basic_format_arg
 
class  basic_format_arg< basic_format_context< t_OUT, t_CHAR > >
 
class  basic_format_args
 
class  basic_format_context
 
class  basic_format_parse_context
 
class  basic_format_string
 
struct  EnableStreamedFormatter
 
class  Format_ArgsStore
 
class  Format_ArgsUtil
 
class  Format_ArgUtil
 
class  Format_ContextFactory
 
class  Format_ContextOutputIteratorBase
 
class  Format_ContextOutputIteratorImpl
 
class  Format_ContextOutputIteratorRef
 
class  format_error
 
struct  Format_Imp_Processor
 
class  Format_Imp_TruncatingIterator
 
struct  Format_Imp_Visitor
 
struct  Format_String_TestUpdater
 
struct  format_to_n_result
 
class  FormatSpecificationParser
 
struct  FormatSpecificationParserEnums
 
struct  FormatterBool_Imp
 
struct  FormatterCharacter_CharacterOutput
 
struct  FormatterCharacter_CharacterOutput< char, wchar_t >
 
struct  FormatterCharacter_Imp
 
struct  FormatterCharacter_MakeUnsigned
 
struct  FormatterCharacter_MakeUnsigned< char, t_SIZE >
 
struct  FormatterCharacter_MakeUnsigned< wchar_t, 1 >
 
struct  FormatterCharacter_MakeUnsigned< wchar_t, 2 >
 
struct  FormatterCharacter_MakeUnsigned< wchar_t, 4 >
 
struct  FormatterCharacter_MakeUnsigned< wchar_t, 8 >
 
struct  FormatterCharUtil
 
struct  FormatterCharUtil< char >
 
struct  FormatterCharUtil< wchar_t >
 
struct  FormatterFloating_Base
 
struct  FormatterIntegral_Category
 
struct  FormatterIntegral_Category< bool >
 
struct  FormatterIntegral_Category< bsl::nullptr_t >
 
struct  FormatterIntegral_Category< char >
 
struct  FormatterIntegral_Category< const void * >
 
struct  FormatterIntegral_Category< void * >
 
struct  FormatterIntegral_Category< wchar_t >
 
struct  FormatterIntegral_Imp
 
struct  FormatterIntegralBase
 
struct  FormatterPointer_Imp
 
struct  FormatterPointer_Nullptr
 
struct  FormatterSpecificationNumericValue
 
class  FormatterSpecificationNumericValue_ArgVisitor
 
class  FormatterString_GraphemeCluster
 
struct  FormatterString_Imp
 
struct  FormatterTestUtil
 
struct  FormatterTestUtil< char >
 
struct  FormatterTestUtil< wchar_t >
 
struct  FormatterTestUtil_Impl
 
struct  FormatterUnicodeData
 
class  MockFormatContext
 
class  MockFormatContext_Iterator
 
class  MockParseContext
 
struct  PadUtil
 
class  StandardFormatSpecification
 
class  Streamed
 
struct  StreamedFormatter
 
class  TestSpecificationGenerator
 
class  TestSpecificationGenerator_BoolOption
 
class  TestSpecificationGenerator_Option
 
class  TestSpecificationGenerator_TypedOption
 
class  UnicodeCodePoint
 

Typedefs

typedef basic_format_context< Format_ContextOutputIteratorRef< char >, char > format_context
 
typedef basic_format_context< Format_ContextOutputIteratorRef< wchar_t >, wchar_t > wformat_context
 
typedef basic_format_args< format_contextformat_args
 
typedef basic_format_args< wformat_contextwformat_args
 
typedef basic_format_string< char > format_string
 
typedef basic_format_string< wchar_t > wformat_string
 
typedef basic_format_parse_context< char > format_parse_context
 
typedef basic_format_parse_context< wchar_t > wformat_parse_context
 

Functions

template<class t_VISITOR , class t_CONTEXT >
bsl::invoke_result< t_VISITOR &, bsl::monostate & >::type visit_format_arg (t_VISITOR &visitor, basic_format_arg< t_CONTEXT > arg)
 
template<class... t_ARGS>
Format_ArgsStore< format_context, t_ARGS... > make_format_args (t_ARGS &... fmt_args)
 
template<class... t_ARGS>
Format_ArgsStore< wformat_context, t_ARGS... > make_wformat_args (t_ARGS &... fmt_args)
 
template<class t_OUT >
t_OUT vformat_to (t_OUT out, bsl::string_view fmtStr, format_args args)
 
template<class t_OUT >
t_OUT vformat_to (t_OUT out, bsl::wstring_view fmtStr, wformat_args args)
 
void vformat_to (bsl::string *out, bsl::string_view fmtStr, format_args args)
 
void vformat_to (bsl::wstring *out, bsl::wstring_view fmtStr, wformat_args args)
 
bsl::string vformat (bsl::string_view fmt, format_args args)
 
bsl::wstring vformat (bsl::wstring_view fmtStr, wformat_args args)
 
bsl::string vformat (bsl::allocator< char > alloc, bsl::string_view fmtStr, format_args args)
 
bsl::wstring vformat (bsl::allocator< wchar_t > alloc, bsl::wstring_view fmtStr, wformat_args args)
 
template<class t_OUT , class... t_ARGS>
bsl::enable_if<!bsl::is_same< typenamebsl::decay< t_OUT >::type, bsl::string * >::value, t_OUT >::type format_to (t_OUT out, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class t_OUT , class... t_ARGS>
bsl::enable_if<!bsl::is_same< typenamebsl::decay< t_OUT >::type, bsl::wstring * >::value, t_OUT >::type format_to (t_OUT out, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
void format_to (bsl::string *out, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
void format_to (bsl::wstring *out, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
bsl::string format (BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
bsl::wstring format (BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
bsl::string format (bsl::allocator< char > alloc, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
bsl::wstring format (bsl::allocator< wchar_t > alloc, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
std::size_t formatted_size (BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
std::size_t formatted_size (BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class t_OUT , class... t_ARGS>
format_to_n_result< t_OUT > format_to_n (t_OUT out, typename bsl::iterator_traits< t_OUT >::difference_type maxNumChars, BSLFMT_FORMAT_STRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class t_OUT , class... t_ARGS>
format_to_n_result< t_OUT > format_to_n (t_OUT out, typename bsl::iterator_traits< t_OUT >::difference_type maxNumChars, BSLFMT_FORMAT_WSTRING_PARAMETER fmtStr, const t_ARGS &... args)
 
template<class... t_ARGS>
void print (BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args)
 
template<class... t_ARGS>
void print (std::FILE *stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args)
 
template<class... t_ARGS>
void println (BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args)
 
template<class... t_ARGS>
void println (std::FILE *stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args)
 
void println ()
 
void println (std::FILE *stream)
 
void vprint_nonunicode (bsl::string_view fmt, bsl::format_args args)
 
void vprint_nonunicode (std::FILE *stream, bsl::string_view fmt, bsl::format_args args)
 
void vprint_nonunicode_buffered (std::FILE *stream, bsl::string_view fmt, bsl::format_args args)
 
void vprint_unicode (bsl::string_view fmt, bsl::format_args args)
 
void vprint_unicode (std::FILE *stream, bsl::string_view fmt, bsl::format_args args)
 
void vprint_unicode_buffered (std::FILE *stream, bsl::string_view fmt, bsl::format_args args)
 
void Print_Imp_ThrowIoError ()
 
template<class... t_ARGS>
void print (std::ostream &stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args)
 
template<class... t_ARGS>
void println (std::ostream &stream, BSLFMT_FORMAT_STRING_PARAMETER fmt, t_ARGS &&... args)
 
void println (std::ostream &stream)
 
void vprint_nonunicode (std::ostream &stream, bsl::string_view fmt, bsl::format_args args)
 
void vprint_unicode (std::ostream &stream, bsl::string_view fmt, bsl::format_args args)
 
template<class t_STREAMABLE >
Streamed< t_STREAMABLE > streamed (const t_STREAMABLE &object)
 

Typedef Documentation

◆ format_args

◆ format_context

◆ format_parse_context

◆ format_string

◆ wformat_args

◆ wformat_context

◆ wformat_parse_context

◆ wformat_string

Function Documentation

◆ format() [1/4]

template<class... t_ARGS>
bsl::string bslfmt::format ( bsl::allocator< char >  alloc,
BSLFMT_FORMAT_STRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, using the specified alloc to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.

◆ format() [2/4]

template<class... t_ARGS>
bsl::wstring bslfmt::format ( bsl::allocator< wchar_t >  alloc,
BSLFMT_FORMAT_WSTRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, using the specified alloc to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.

◆ format() [3/4]

template<class... t_ARGS>
bsl::string bslfmt::format ( BSLFMT_FORMAT_STRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr and return the result as a bsl::string. In the event of an error the exception format_error is thrown.

◆ format() [4/4]

template<class... t_ARGS>
bsl::wstring bslfmt::format ( BSLFMT_FORMAT_WSTRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr and return the result as a bsl::string. In the event of an error the exception format_error is thrown.

◆ format_to() [1/4]

template<class... t_ARGS>
void bslfmt::format_to ( bsl::string out,
BSLFMT_FORMAT_STRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.

◆ format_to() [2/4]

template<class... t_ARGS>
void bslfmt::format_to ( bsl::wstring out,
BSLFMT_FORMAT_WSTRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.

◆ format_to() [3/4]

template<class t_OUT , class... t_ARGS>
bsl::enable_if<!bsl::is_same< typenamebsl::decay< t_OUT >::type, bsl::string * >::value, t_OUT >::type bslfmt::format_to ( t_OUT  out,
BSLFMT_FORMAT_STRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output parameter.

◆ format_to() [4/4]

template<class t_OUT , class... t_ARGS>
bsl::enable_if<!bsl::is_same< typenamebsl::decay< t_OUT >::type, bsl::wstring * >::value, t_OUT >::type bslfmt::format_to ( t_OUT  out,
BSLFMT_FORMAT_WSTRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output parameter.

◆ format_to_n() [1/2]

template<class t_OUT , class... t_ARGS>
format_to_n_result< t_OUT > bslfmt::format_to_n ( t_OUT  out,
typename bsl::iterator_traits< t_OUT >::difference_type  maxNumChars,
BSLFMT_FORMAT_STRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write at most the specified maxNumChars characters of the result of this operation into the output iterator referenced by the specified out parameter. Return a format_to_n_result object whose size member holds the number of characters that would have been written to out were such writing not truncated, and whose out member holds an iterator one past the end of the output range. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output iterator.

◆ format_to_n() [2/2]

template<class t_OUT , class... t_ARGS>
format_to_n_result< t_OUT > bslfmt::format_to_n ( t_OUT  out,
typename bsl::iterator_traits< t_OUT >::difference_type  maxNumChars,
BSLFMT_FORMAT_WSTRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write at most the specified maxNumChars characters of the result of this operation into the output iterator referenced by the specified out parameter. Return a format_to_n_result object whose size member holds the number of characters that would have been written to out were such writing not truncated, and whose out member holds an iterator one past the end of the output range. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid output iterator.

◆ formatted_size() [1/2]

template<class... t_ARGS>
std::size_t bslfmt::formatted_size ( BSLFMT_FORMAT_STRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Calculate the length of the resulting string if the specified args were to be formatted according to the specification given by the specified fmtStr, and return the result.

◆ formatted_size() [2/2]

template<class... t_ARGS>
std::size_t bslfmt::formatted_size ( BSLFMT_FORMAT_WSTRING_PARAMETER  fmtStr,
const t_ARGS &...  args 
)
inline

Calculate the length of the resulting string if the specified args were to be formatted according to the specification given by the specified fmtStr, and return the result.

◆ make_format_args()

template<class... t_ARGS>
Format_ArgsStore< format_context, t_ARGS... > bslfmt::make_format_args ( t_ARGS &...  fmt_args)
inline

From the specified fmt_args return a type convertible to format_arg_store that is suitable for use by the char-based bslfmt::format functions.

◆ make_wformat_args()

template<class... t_ARGS>
Format_ArgsStore< wformat_context, t_ARGS... > bslfmt::make_wformat_args ( t_ARGS &...  fmt_args)
inline

From the specified fmt_args return a type convertible to format_arg_store that is suitable for use by the wchar_t-based bslfmt::format functions.

◆ print() [1/3]

template<class... t_ARGS>
void bslfmt::print ( BSLFMT_FORMAT_STRING_PARAMETER  fmt,
t_ARGS &&...  args 
)
inline

Format the specified args using bsl::format_to according to the specification given by the specified fmt, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

◆ print() [2/3]

template<class... t_ARGS>
void bslfmt::print ( std::FILE *  stream,
BSLFMT_FORMAT_STRING_PARAMETER  fmt,
t_ARGS &&...  args 
)
inline

Format the specified args using bsl::format_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ print() [3/3]

template<class... t_ARGS>
void bslfmt::print ( std::ostream &  stream,
BSLFMT_FORMAT_STRING_PARAMETER  fmt,
t_ARGS &&...  args 
)
inline

Format the specified args using bsl::format_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ Print_Imp_ThrowIoError()

void bslfmt::Print_Imp_ThrowIoError ( )

Throw system_error with errc::io_error.

◆ println() [1/6]

void bslfmt::println ( )
inline

Write \n into stdout.

◆ println() [2/6]

template<class... t_ARGS>
void bslfmt::println ( BSLFMT_FORMAT_STRING_PARAMETER  fmt,
t_ARGS &&...  args 
)
inline

Format the specified args using bsl::format_to according to the specification given by the specified fmt, append \n, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

◆ println() [3/6]

void bslfmt::println ( std::FILE *  stream)

Write \n to the specified stream.

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ println() [4/6]

template<class... t_ARGS>
void bslfmt::println ( std::FILE *  stream,
BSLFMT_FORMAT_STRING_PARAMETER  fmt,
t_ARGS &&...  args 
)
inline

Format the specified args using bsl::format_to according to the specification given by the specified fmt, append \n, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc.

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ println() [5/6]

void bslfmt::println ( std::ostream &  stream)
inline

Write \n to the specified stream.

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ println() [6/6]

template<class... t_ARGS>
void bslfmt::println ( std::ostream &  stream,
BSLFMT_FORMAT_STRING_PARAMETER  fmt,
t_ARGS &&...  args 
)
inline

Format the specified args using bsl::format_to according to the specification given by the specified fmt, append \n, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc.

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ streamed()

template<class t_STREAMABLE >
Streamed< t_STREAMABLE > bslfmt::streamed ( const t_STREAMABLE &  object)

◆ vformat() [1/4]

bsl::string bslfmt::vformat ( bsl::allocator< char >  alloc,
bsl::string_view  fmtStr,
format_args  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, using the specified allocator to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.

◆ vformat() [2/4]

bsl::wstring bslfmt::vformat ( bsl::allocator< wchar_t >  alloc,
bsl::wstring_view  fmtStr,
wformat_args  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, using the specified allocator to supply memory (if required), and return the result. In the event of an error the exception format_error is thrown.

◆ vformat() [3/4]

bsl::string bslfmt::vformat ( bsl::string_view  fmt,
format_args  args 
)
inline

Format the specified args according to the specification given by the specified fmt and return the result. In the event of an error the exception format_error is thrown.

◆ vformat() [4/4]

bsl::wstring bslfmt::vformat ( bsl::wstring_view  fmtStr,
wformat_args  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr and return the result. In the event of an error the exception format_error is thrown.

◆ vformat_to() [1/4]

void bslfmt::vformat_to ( bsl::string out,
bsl::string_view  fmtStr,
format_args  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.

◆ vformat_to() [2/4]

void bslfmt::vformat_to ( bsl::wstring out,
bsl::wstring_view  fmtStr,
wformat_args  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the string addressed by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out does not point to a valid bsl::string object.

◆ vformat_to() [3/4]

template<class t_OUT >
t_OUT bslfmt::vformat_to ( t_OUT  out,
bsl::string_view  fmtStr,
format_args  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out is not a valid output iterator.

◆ vformat_to() [4/4]

template<class t_OUT >
t_OUT bslfmt::vformat_to ( t_OUT  out,
bsl::wstring_view  fmtStr,
wformat_args  args 
)
inline

Format the specified args according to the specification given by the specified fmtStr, and write the result of this operation into the output iterator given by the specified out parameter. In the event of an error the exception format_error is thrown. Behavior is undefined if out is not a valid output iterator.

◆ visit_format_arg()

template<class t_VISITOR , class t_CONTEXT >
bsl::invoke_result< t_VISITOR &, bsl::monostate & >::type bslfmt::visit_format_arg ( t_VISITOR &  visitor,
basic_format_arg< t_CONTEXT >  arg 
)
inline

Invoke the specified visitor functor on the value contained by the specified arg, providing that functor non-modifiable access to that value. visitor must be a variant-style functor that is able to visit all supported types listed in the {DESCRIPTION}.

◆ vprint_nonunicode() [1/3]

void bslfmt::vprint_nonunicode ( bsl::string_view  fmt,
bsl::format_args  args 
)
inline

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

◆ vprint_nonunicode() [2/3]

void bslfmt::vprint_nonunicode ( std::FILE *  stream,
bsl::string_view  fmt,
bsl::format_args  args 
)

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ vprint_nonunicode() [3/3]

void bslfmt::vprint_nonunicode ( std::ostream &  stream,
bsl::string_view  fmt,
bsl::format_args  args 
)

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ vprint_nonunicode_buffered()

void bslfmt::vprint_nonunicode_buffered ( std::FILE *  stream,
bsl::string_view  fmt,
bsl::format_args  args 
)

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt to a temporary buffer, and write the resulting buffer to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ vprint_unicode() [1/3]

void bslfmt::vprint_unicode ( bsl::string_view  fmt,
bsl::format_args  args 
)
inline

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to stdout. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

◆ vprint_unicode() [2/3]

void bslfmt::vprint_unicode ( std::FILE *  stream,
bsl::string_view  fmt,
bsl::format_args  args 
)

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ vprint_unicode() [3/3]

void bslfmt::vprint_unicode ( std::ostream &  stream,
bsl::string_view  fmt,
bsl::format_args  args 
)

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt, and write the result of this operation to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.

◆ vprint_unicode_buffered()

void bslfmt::vprint_unicode_buffered ( std::FILE *  stream,
bsl::string_view  fmt,
bsl::format_args  args 
)

Format the specified args using bsl::vformat_to according to the specification given by the specified fmt to a temporary buffer, and write the resulting buffer to the specified stream. In the event of formatting error throw the exception format_error , in the event of I/O error throw the exception system_error , on allocation failure throw bad_alloc .

Precondition
The behavior is undefined unless stream is a valid pointer to an output C stream.