mp_units::utility::operator<<

Streams a safe_int's wrapped value to an output stream

Synopsis

Declared in <mp-units/utility/safe_int.h>

template<
    typename CharT,
    typename Traits>
std::basic_ostream<CharT, Traits>&
operator<<(
    std::basic_ostream<CharT, Traits>& os,
    safe_int v);

NOTE

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

Return Value

a reference to os

Parameters

NameDescription
osthe output stream to write to
vthe safe_int to stream