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              ;   

  // public member functions
  ();
  (const  );
  BOOST_CXX14_CONSTEXPR   (const  );
};

Description

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

unit public member functions

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

PrevUpHomeNext