fmt::formatter<std::complex<T>, Char>

Formats std::complex<T> as real+imagi (or real-imagi), applying the parsed specs to both the real and imaginary parts.

Synopsis

Declared in <fmt/std.h>

template<
    typename T,
    typename Char>
struct formatter<std::complex<T>, Char>;

Member Functions

NameDescription
format Formats c as real+imagi (or real-imagi) into ctx.
parse Parses the format specifier for the complex number's real and imaginary parts.