Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
util::ConstevalFormatString< num_params > Struct Template Reference

A wrapper for a compile-time partially validated format string. More...

#include <string.h>

Public Member Functions

consteval ConstevalFormatString (const char *str)
 

Public Attributes

const char *const fmt
 

Detailed Description

template<unsigned num_params>
struct util::ConstevalFormatString< num_params >

A wrapper for a compile-time partially validated format string.

This struct can be used to enforce partial compile-time validation of format strings, to reduce the likelihood of tinyformat throwing exceptions at run-time. Validation is partial to try and prevent the most common errors while avoiding re-implementing the entire parsing logic.

Definition at line 92 of file string.h.

Constructor & Destructor Documentation

◆ ConstevalFormatString()

template<unsigned num_params>
consteval util::ConstevalFormatString< num_params >::ConstevalFormatString ( const char *  str)
inline

Definition at line 94 of file string.h.

Member Data Documentation

◆ fmt

template<unsigned num_params>
const char* const util::ConstevalFormatString< num_params >::fmt

Definition at line 93 of file string.h.


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