Boost C++ Libraries

...one 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.
PrevUpHomeNext

Struct template zero_or_default

boost::numeric::zero_or_default

Synopsis

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

template<typename T> 
struct zero_or_default :
  public mpl::if_::type< is_empty< T >, default_< T >, zero< T > >
{
};

PrevUpHomeNext