A wrapper for a compile‐time partially validated format string

Synopsis

Declared in <util/string.h>

template<unsigned int num_params>
struct ConstevalFormatString;

Description

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.

Member Functions

Name

Description

ConstevalFormatString [constructor]

Wrap and partially validate a format string at compile time.

Data Members

Name

Description

fmt

The wrapped format string.

Created with MrDocs