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 the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct template scale

boost::units::scale

Synopsis

// 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 BOOST_CONSTEXPR value_type value();

  // public data members
  BOOST_STATIC_CONSTEXPR long base;
};

Description

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

scale public static functions

  1. static BOOST_CONSTEXPR value_type value();

PrevUpHomeNext