Holds a null‐terminated string of exactly N ‐ 1 characters, produced by formatting a compiled format string at compile time.

Synopsis

Declared in <fmt/compile.h>

template<size_t N>
class static_format_result;

Member Functions

Name

Description

static_format_result [constructor]

Formats args according to the compiled format string fmt into the internal fixed‐size buffer, null‐terminating the result.

c_str

The formatted result as a null‐terminated C string.

str

The formatted result as a fmt::string_view.

Created with MrDocs