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);

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

Name

Description

out

Stream to write the formatted value to.

fmtBegin

Pointer to the first character of the format specification.

fmtEnd

Pointer past the last character of the format specification.

ntrunc

Maximum number of characters to emit for truncating conversions, or negative for none.

value

Value to format.

Created with MrDocs