Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function template operator<<

boost::units::operator<<

Synopsis

template<typename Char, typename Traits, typename Dimension, typename System> 
  std::basic_ostream< Char, Traits > & 
  operator<<(std::basic_ostream< Char, Traits > & os, 
             const unit< Dimension, System > & u);

Description

Print an unit as a list of base units and exponents

for symbol_format this gives e.g. "m s^-1" or "J" for name_format this gives e.g. "meter second^-1" or "joule" for raw_format this gives e.g. "m s^-1" or "meter kilogram^2 second^-2" for typename_format this gives the typename itself (currently demangled only on GCC)


PrevUpHomeNext