stats.hpp 972 B

1234567891011121314151617181920212223242526272829
  1. ///////////////////////////////////////////////////////////////////////////////
  2. /// \file stats.hpp
  3. /// Contains the stats<> template.
  4. ///
  5. // Copyright 2005 Eric Niebler. Distributed under the Boost
  6. // Software License, Version 1.0. (See accompanying file
  7. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. #ifndef BOOST_ACCUMULATORS_STATISTICS_STATS_HPP_EAN_28_10_2005
  9. #define BOOST_ACCUMULATORS_STATISTICS_STATS_HPP_EAN_28_10_2005
  10. #include <boost/preprocessor/repetition/enum_params.hpp>
  11. #include <boost/mpl/vector.hpp>
  12. #include <boost/accumulators/statistics_fwd.hpp>
  13. namespace boost { namespace accumulators
  14. {
  15. ///////////////////////////////////////////////////////////////////////////////
  16. /// An MPL sequence of statistics.
  17. template<BOOST_PP_ENUM_PARAMS(BOOST_ACCUMULATORS_MAX_FEATURES, typename Stat)>
  18. struct stats
  19. : mpl::vector<BOOST_PP_ENUM_PARAMS(BOOST_ACCUMULATORS_MAX_FEATURES, Stat)>
  20. {
  21. };
  22. }} // namespace boost::accumulators
  23. #endif