BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlb::Guid_BslFmtFormatterImpl< t_CHAR > Class Template Reference

#include <bdlb_guidformatter.h>

Detailed Description

template<class t_CHAR>
class bdlb::Guid_BslFmtFormatterImpl< t_CHAR >

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.

Precondition
The behavior is undefined unless t_CHAR is char or wchar_t.

See bdlb_guidformatter

Public Member Functions

template<class t_PARSE_CONTEXT >
BSLS_KEYWORD_CONSTEXPR_CPP20 t_PARSE_CONTEXT::iterator parse (t_PARSE_CONTEXT &parseContext)
 
template<class t_FORMAT_CONTEXT >
t_FORMAT_CONTEXT::iterator format (const Guid &value, t_FORMAT_CONTEXT &formatContext) const
 

Member Function Documentation

◆ format()

template<class t_CHAR >
template<class t_FORMAT_CONTEXT >
t_FORMAT_CONTEXT::iterator bdlb::Guid_BslFmtFormatterImpl< t_CHAR >::format ( const Guid value,
t_FORMAT_CONTEXT &  formatContext 
) const

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.

Precondition
The behavior is undefined unless t_FORMAT_CONTEXT::char_type is t_CHAR.

◆ parse()

template<class t_CHAR >
template<class t_PARSE_CONTEXT >
BSLS_KEYWORD_CONSTEXPR_CPP20 t_PARSE_CONTEXT::iterator bdlb::Guid_BslFmtFormatterImpl< t_CHAR >::parse ( t_PARSE_CONTEXT &  parseContext)

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.


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