Skip to content

mp_units::utility::operator<<

Stream insertion operator

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

Reference to the current output stream

Parameters

NameDescription
osAn output stream
vThe object to output