Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.

Struct template average<Left, Right, std_valarray_tag, RightTag>

boost::numeric::functional::average<Left, Right, std_valarray_tag, RightTag>


// In header: <boost/accumulators/numeric/functional/valarray.hpp>

template<typename Left, typename Right, typename RightTag> 
struct average<Left, Right, std_valarray_tag, RightTag> : public mpl::if_::type< are_integral< Left::value_type, Right >, divides< Left, double const  >, divides< Left, Right > >