Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template conversion_helper

boost::units::conversion_helper

Synopsis

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

template<typename From, typename To> 
struct conversion_helper {

  // public static functions
  BOOST_CONSTEXPR  To (const  From &);
};

Description

Template for defining conversions between quantities. This template should be specialized for every quantity that allows conversions. For example, if you have a two units called pair and dozen you would write

 {

In most cases, the predefined specializations for unit and absolute should be sufficient, so users should rarely need to use this.

conversion_helper public static functions

  1. BOOST_CONSTEXPR  To (const  From &);

PrevUpHomeNext