qxLib
Public Member Functions | Static Public Member Functions | List of all members
qx::basic_format_string_strong_checks< char_t, args_t > Struct Template Reference

std::basic_format_string wrapper that performs additional compile time checks More...

#include <format_string.h>

Inheritance diagram for qx::basic_format_string_strong_checks< char_t, args_t >:

Public Member Functions

template<class T >
requires std::convertible_to< const T &, qx::basic_string_view< char_t > > consteval basic_format_string_strong_checks (const T &value)
 basic_format_string object constructor More...
 

Static Public Member Functions

template<class T >
static consteval const T & parse_format_string (const T &value)
 Check braces balance and args num. More...
 

Detailed Description

template<class char_t, class... args_t>
struct qx::basic_format_string_strong_checks< char_t, args_t >

std::basic_format_string wrapper that performs additional compile time checks

Checks braces balance and matching pairs of braces to the number of arguments in exchange for some format features, such as nested replacement fields

Template Parameters
char_t- char type
args_t- template parameter pack type

Definition at line 28 of file format_string.h.

Constructor & Destructor Documentation

◆ basic_format_string_strong_checks()

template<class char_t , class... args_t>
template<class T >
requires std::convertible_to< const T &, qx::basic_string_view< char_t > > consteval qx::basic_format_string_strong_checks< char_t, args_t >::basic_format_string_strong_checks ( const T &  value)

basic_format_string object constructor

Template Parameters
T- string view convertible type
Parameters
value- format string to check

Definition at line 16 of file format_string.inl.

Member Function Documentation

◆ parse_format_string()

template<class char_t , class... args_t>
template<class T >
consteval const T & qx::basic_format_string_strong_checks< char_t, args_t >::parse_format_string ( const T &  value)
static

Check braces balance and args num.

Template Parameters
T- string view convertible type
Parameters
value- format string to check
Return values
-save format string as input

Definition at line 23 of file format_string.inl.


The documentation for this struct was generated from the following files: