mp_units::operator<<

Stream insertion operator

Synopsis

Declared in <mp-units/framework/quantity_point.h>

template<
    typename CharT,
    typename Traits,
    auto R,
    auto PO,
    typename Rep>
requires (PO == default_point_origin(R))
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    quantity_point<R, PO, Rep> const& qp)
requires requires { os << qp.quantity_from_zero(); };

NOTE

This function is a hidden friend of quantity_point, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

Reference to the current output stream

Parameters

NameDescription
osAn output stream
qpThe object to output