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<ToFrom, ToFrom, std_vector_tag, std_vector_tag>

boost::numeric::functional::promote<ToFrom, ToFrom, std_vector_tag, std_vector_tag>


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

template<typename ToFrom> 
struct promote<ToFrom, ToFrom, std_vector_tag, std_vector_tag> {
  // types
  typedef ToFrom argument_type;
  typedef ToFrom result_type;  

  // public member functions
  ToFrom & operator()(ToFrom &) const;


promote public member functions

  1. ToFrom & operator()(ToFrom & tofrom) const;