fmt::operator|

Bitwise disjunction operators

Synopses

Declared in <fmt/color.h>

Combines two emphases into a text style with both applied.

constexpr
text_style
operator|(
    emphasis lhs,
    emphasis rhs) noexcept;
» more...

Combines lhs and rhs into a new style with their colors and emphases merged.

constexpr
text_style
operator|(
    text_style lhs,
    text_style rhs);
» more...

Return Value

  • A text style with both emphases applied.
  • A new style with lhs and rhs merged.

Parameters

NameDescription
lhsThe first emphasis.
rhsThe second emphasis.