tinyformat::formatValue

formatValue overloads

Synopses

Declared in <util/fs.h>

Format a char value, printing as an integer when an integer conversion is requested.

void
formatValue(
    std::ostream& out,
    char const*,
    char const* fmtEnd,
    int,
    char value);
» more...

Format a signed char value, printing as an integer when an integer conversion is requested.

void
formatValue(
    std::ostream& out,
    char const*,
    char const* fmtEnd,
    int,
    signed char value);
» more...

Format an unsigned char value, printing as an integer when an integer conversion is requested.

void
formatValue(
    std::ostream& out,
    char const*,
    char const* fmtEnd,
    int,
    unsigned char value);
» more...

Format a value into a stream, delegating to operator<< by default.

template<typename T>
void
formatValue(
    std::ostream& out,
    char const* fmtBegin,
    char const* fmtEnd,
    int ntrunc,
    T const& value);
» more...

Deleted specialization that forbids formatting a std::filesystem::path, which encodes locale-dependently on Windows.

template<>
void
formatValue<path>(
    std::ostream&,
    char const*,
    char const*,
    int,
    std::filesystem::path const&) = delete;
» more...

Deleted specialization that forbids formatting an fs::path, which encodes locale-dependently on Windows.

template<>
void
formatValue<path>(
    std::ostream&,
    char const*,
    char const*,
    int,
    fs::path const&) = delete;
» more...

Parameters

NameDescription
outStream to write the formatted value to.
fmtBeginPointer to the first character of the format specification.
fmtEndPointer past the last character of the format specification.
ntruncMaximum number of characters to emit for truncating conversions, or negative for none.
valueValue to format.