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 the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template promote<To, From, std_valarray_tag, std_valarray_tag>

boost::numeric::functional::promote<To, From, std_valarray_tag, std_valarray_tag>


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

template<typename To, typename From> 
struct promote<To, From, std_valarray_tag, std_valarray_tag> {
  // types
  typedef From argument_type;
  typedef To   result_type;  

  // public member functions
  To operator()(From &) const;


promote public member functions

  1. To operator()(From & arr) const;