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 to view this page for the latest version.
PrevUpHomeNext

Function template pow

boost::units::pow

Synopsis

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


template<typename S, typename Y> 
  BOOST_CONSTEXPR quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > 
  pow(const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > & q1, 
      const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > & q2);

Description

For non-dimensionless quantities, integral and rational powers and roots can be computed by pow<Ex> and root<Rt> respectively.


PrevUpHomeNext