Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template base_dimension

boost::units::base_dimension

Synopsis

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

template<typename Derived,  N> 
class base_dimension : public  {
public:
  // types
  typedef  ;  // A convenience typedef. Equivalent to boost::units::derived_dimension<Derived,1>::type. 
  typedef Derived     ;            // Provided for mpl compatability. 
};

Description

Defines a base dimension. To define a dimension you need to provide the derived class (CRTP) and a unique integer.

boost::units::base_dimension<

It is designed so that you will get an error message if you try to use the same value in multiple definitions.


PrevUpHomeNext