BloombergLP::bdlb::Guid_BslFmtFormatterImpl

This component-private class template provides the implementation of the bsl::formatter specialization for bdlb::Guid values. The specified t_CHAR template parameter determines both the format-string and the output character type. The behavior is undefined unless t_CHAR is char or wchar_t.

Synopsis

Declared in <bdlb_guidformatter.h>

template<class t_CHAR>
class Guid_BslFmtFormatterImpl;

Member Functions

NameDescription
format Create a string representation of the specified value in accordance with the format specification previously parsed by parse (see grammar documented at the top of this component) and the specified formatContext, and copy it to the output iterator held by formatContext. Return the updated output iterator. The behavior is undefined unless t_FORMAT_CONTEXT::char_type is t_CHAR.
parse Parse the format specification contained in the specified parseContext and return an iterator, pointing to the beginning of the unparsed section of the format string. Throw a bsl::format_error exception if the specification does not conform to the grammar documented at the top of this component.