1 ///////////////////////////////////////////////////////////////////////////////
2 // accumulator_base.hpp
4 // Copyright 2005 Eric Niebler. Distributed under the Boost
5 // Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_ACCUMULATORS_FRAMEWORK_ACCUMULATORS_BASE_HPP_EAN_28_10_2005
9 #define BOOST_ACCUMULATORS_FRAMEWORK_ACCUMULATORS_BASE_HPP_EAN_28_10_2005
11 #include <boost/mpl/placeholders.hpp>
12 #include <boost/mpl/joint_view.hpp>
13 #include <boost/mpl/single_view.hpp>
14 #include <boost/mpl/fold.hpp>
15 #include <boost/mpl/contains.hpp>
16 #include <boost/mpl/empty_sequence.hpp>
17 #include <boost/accumulators/framework/accumulator_concept.hpp>
19 namespace boost { namespace accumulators
27 ///////////////////////////////////////////////////////////////////////////////
32 template<typename Args>
33 dont_care(Args const &)
38 ///////////////////////////////////////////////////////////////////////////////
41 struct accumulator_base
43 // hidden if defined in derived classes
44 detail::void_ operator ()(dont_care)
48 typedef mpl::false_ is_droppable;
50 detail::void_ add_ref(dont_care)
54 detail::void_ drop(dont_care)
58 detail::void_ on_drop(dont_care)
63 }} // namespace boost::accumulators