...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::accumulators::extractor — Extracts the result associated with Feature from the specified accumulator_set.
// In header: <boost/accumulators/accumulators_fwd.hpp> template<typename Feature> struct extractor { // public member functions template<typename Arg1> unspecified operator()(Arg1 const &) const; template<typename AccumulatorSet, typename A1> unspecified operator()(AccumulatorSet const &, A1 const &) const; template<typename AccumulatorSet, typename A1, typename A2, ... > unspecified operator()(AccumulatorSet const &, A1 const &, A2 const &, ...); };
extractor
public member functionstemplate<typename Arg1> unspecified operator()(Arg1 const & arg1) const;
Extract the result associated with Feature from the accumulator set
template<typename AccumulatorSet, typename A1> unspecified operator()(AccumulatorSet const & acc, A1 const & a1) const;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Parameters: |
|
template<typename AccumulatorSet, typename A1, typename A2, ... > unspecified operator()(AccumulatorSet const & acc, A1 const & a1, A2 const & a2, ...);
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.