...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::droppable_accumulator_base
// In header: <boost/accumulators/accumulators_fwd.hpp> template<typename Accumulator> struct droppable_accumulator_base : public Accumulator { // construct/copy/destruct template<typename Args> droppable_accumulator_base(Args const &); droppable_accumulator_base(droppable_accumulator_base const &); // public member functions template<typename Args> void operator()(Args const &); template<typename Args> void add_ref(Args const &); template<typename Args> void drop(Args const &); bool is_dropped() const; };
droppable_accumulator_base
public
construct/copy/destructtemplate<typename Args> droppable_accumulator_base(Args const & args);
droppable_accumulator_base(droppable_accumulator_base const & that);