Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template one_or_default

boost::numeric::one_or_default

Synopsis

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

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

PrevUpHomeNext