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

Struct template one

boost::numeric::one

Synopsis

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

template<typename T> 
struct one {
  // types
  typedef one type;      
  typedef T   value_type;

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

  // public data members
  static T const value;
};

Description

one public member functions

  1. operator T const &() const;

PrevUpHomeNext