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

Class template unit

boost::units::unit — class representing a model-dependent unit with no associated value

Synopsis

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

template<typename Dim, typename System, typename Enable> 
class unit {
public:
  // types
  typedef unit< Dim, System > unit_type;     
  typedef unit< Dim, System > this_type;     
  typedef Dim                 dimension_type;
  typedef System              system_type;   

  // construct/copy/destruct
  unit();
  unit(const this_type &);
  BOOST_CXX14_CONSTEXPR this_type & operator=(const this_type &);
};

Description

(e.g. meters, Kelvin, feet, etc...)

unit public construct/copy/destruct

  1. unit();
  2. unit(const this_type &);
  3. BOOST_CXX14_CONSTEXPR this_type & operator=(const this_type &);

PrevUpHomeNext