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 scale



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

template<long Base, typename Exponent> 
struct scale {
  // types
  typedef Exponent exponent;  
  typedef double   value_type;

  // public static functions
  static value_type value() ;
  static std::string name() ;
  static std::string symbol() ;
  static const long base;


class representing a scaling factor such as 10^3 The exponent should be a static rational.

scale public static functions

  1. static value_type value() ;
  2. static std::string name() ;
  3. static std::string symbol() ;