Boost C++ Libraries Home Libraries People FAQ More

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 > ;     
  typedef unit< Dim, System > ;     
  typedef Dim                 ;
  typedef System              ;   

  // construct/copy/destruct
  ();
  (const );
  BOOST_CXX14_CONSTEXPR  (const );
};

Description

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

unit public construct/copy/destruct

  1. ();
  2. (const );
  3. BOOST_CXX14_CONSTEXPR  (const );

PrevUpHomeNext