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 as_zero<T, std_valarray_tag>

boost::numeric::functional::as_zero<T, std_valarray_tag>


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

template<typename T> 
struct as_zero<T, std_valarray_tag> : public std::unary_function< T, remove_const< T >::type > {

  // public member functions
  remove_const< T >::type operator()(T &) const;


as_zero public member functions

  1. remove_const< T >::type operator()(T & arr) const;