fmt
Loading...
Searching...
No Matches
fmt::StaticFormatResult< N > Class Template Referenceexport
module fmt

Public Member Functions

template<typename S, typename... T>
requires (IsCompiledString<S>::value)
constexpr StaticFormatResult (const S &fmt, T &&... args)
constexpr auto str () const -> fmt::StringView
constexpr auto c_str () const -> const char *

Detailed Description

template<size_t N>
class fmt::StaticFormatResult< N >

A fixed-size buffer holding the result of static_format.

Template Parameters
Nthe buffer size in bytes, including the terminating NUL.
See also
static_format, which computes N for you.

Member Function Documentation

◆ c_str()

template<size_t N>
auto fmt::StaticFormatResult< N >::c_str ( ) const -> const char *
inlineconstexpr

Returns the formatted text as a NUL-terminated C string.

◆ str()

template<size_t N>
auto fmt::StaticFormatResult< N >::str ( ) const -> fmt::StringView
inlineconstexpr

Returns the formatted text, without the terminating NUL.


The documentation for this class was generated from the following file:
  • /home/mccakit/desktop/mccakit-fmt/fmt/src/fmt/iface/compile.cppm