fmt::operator|

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

Synopsis

Declared in <fmt/color.h>

constexpr
text_style
operator|(
    text_style lhs,
    text_style rhs);

NOTE

This function is a hidden friend of text_style, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

A new style with lhs and rhs merged.

Parameters

NameDescription
lhsThe first style to merge.
rhsThe second style to merge.