| Home | Libraries | People | FAQ | More

## Struct template extractor

boost::accumulators::extractor — Extracts the result associated with Feature from the specified accumulator_set.

## Synopsis

    // 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 &,
                               ...);
    };

## Description

### `extractor` public member functions

1.     template<typename Arg1> unspecified operator()(Arg1 const & arg1) const;

   Extract the result associated with Feature from the accumulator set

2.     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: |
   `a1` | Optional named parameter to be passed to the accumulator's result() function.

3.     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.