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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template base_unit_info

boost::units::base_unit_info — traits template for unit names


// In header: <boost/units/io.hpp>

template<typename BaseUnit> 
struct base_unit_info {

  // public static functions
  static std::string name() ;
  static std::string symbol() ;


base_unit_info public static functions

  1. static std::string name() ;
    The full name of the unit (returns BaseUnit::name() by default).
  2. static std::string symbol() ;
    The symbol for the base unit (Returns BaseUnit::symbol() by default).