BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslfmt::basic_format_string< t_CHAR, t_ARGS > Class Template Reference

#include <bslfmt_format_string.h>

Detailed Description

template<class t_CHAR, class... t_ARGS>
class bslfmt::basic_format_string< t_CHAR, t_ARGS >

Type that wraps a basic_string_view for use by formatting function. The constructor performs additional compile-time checks of the format string provided (not yet implemented).

See bslfmt_format_string

Public Member Functions

template<class t_STR , class = typename bsl::enable_if<bsl::is_convertible< const t_STR&, bsl::basic_string_view<t_CHAR> >::value>::type>
consteval basic_format_string (const t_STR &str)
 
BSLS_KEYWORD_CONSTEXPR bsl::basic_string_view< t_CHAR > get () const
 

Friends

template<class t_INNER_CHAR >
struct Format_String_TestUpdater
 

Constructor & Destructor Documentation

◆ basic_format_string()

template<class t_CHAR , class... t_ARGS>
template<class t_STR , class >
consteval bslfmt::basic_format_string< t_CHAR, t_ARGS >::basic_format_string ( const t_STR &  str)

Create an instance of this type from the specified str. This function only takes part in overload resolution if str is convertible to a basic_string_view . Construction is ill-formed if str is not a compile-time constant.

Member Function Documentation

◆ get()

template<class t_CHAR , class... t_ARGS>
BSLS_KEYWORD_CONSTEXPR bsl::basic_string_view< t_CHAR > bslfmt::basic_format_string< t_CHAR, t_ARGS >::get ( ) const
inline

Return the wrapped basic_string_view contained by this instance.

Friends And Related Symbol Documentation

◆ Format_String_TestUpdater

template<class t_CHAR , class... t_ARGS>
template<class t_INNER_CHAR >
friend struct Format_String_TestUpdater
friend

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