1 ///////////////////////////////////////////////////////////////////////////////
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_STATISTICS_COUNT_HPP_EAN_28_10_2005
9 #define BOOST_ACCUMULATORS_STATISTICS_COUNT_HPP_EAN_28_10_2005
11 #include <boost/mpl/always.hpp>
12 #include <boost/accumulators/framework/accumulator_base.hpp>
13 #include <boost/accumulators/framework/extractor.hpp>
14 #include <boost/accumulators/framework/depends_on.hpp>
15 #include <boost/accumulators/statistics_fwd.hpp>
17 namespace boost
{ namespace accumulators
23 ///////////////////////////////////////////////////////////////////////////////
28 // for boost::result_of
29 typedef std::size_t result_type
;
36 void operator ()(dont_care
)
41 result_type
result(dont_care
) const
52 ///////////////////////////////////////////////////////////////////////////////
62 typedef mpl::always
<accumulators::impl::count_impl
> impl
;
66 ///////////////////////////////////////////////////////////////////////////////
71 extractor
<tag::count
> const count
= {};
76 }} // namespace boost::accumulators