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 for the latest Boost documentation.

Struct template promote<bool, From, void, std_valarray_tag>

boost::numeric::functional::promote<bool, From, void, std_valarray_tag>


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

template<typename From> 
struct promote<bool, From, void, std_valarray_tag> : public std::unary_function< From, bool > {

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


promote public member functions

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