Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/accumulators/statistics/with_error.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 // with_error.hpp |
Chris@16 | 3 // |
Chris@16 | 4 // Copyright 2005 Eric Niebler. Distributed under the Boost |
Chris@16 | 5 // Software License, Version 1.0. (See accompanying file |
Chris@16 | 6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 |
Chris@16 | 8 #ifndef BOOST_ACCUMULATORS_STATISTICS_WITH_ERROR_HPP_EAN_01_11_2005 |
Chris@16 | 9 #define BOOST_ACCUMULATORS_STATISTICS_WITH_ERROR_HPP_EAN_01_11_2005 |
Chris@16 | 10 |
Chris@16 | 11 #include <boost/preprocessor/repetition/enum_params.hpp> |
Chris@16 | 12 #include <boost/mpl/vector.hpp> |
Chris@16 | 13 #include <boost/mpl/transform_view.hpp> |
Chris@16 | 14 #include <boost/mpl/placeholders.hpp> |
Chris@16 | 15 #include <boost/accumulators/statistics_fwd.hpp> |
Chris@16 | 16 #include <boost/accumulators/statistics/error_of.hpp> |
Chris@16 | 17 |
Chris@16 | 18 namespace boost { namespace accumulators |
Chris@16 | 19 { |
Chris@16 | 20 |
Chris@16 | 21 namespace detail |
Chris@16 | 22 { |
Chris@16 | 23 template<typename Feature> |
Chris@16 | 24 struct error_of_tag |
Chris@16 | 25 { |
Chris@16 | 26 typedef tag::error_of<Feature> type; |
Chris@16 | 27 }; |
Chris@16 | 28 } |
Chris@16 | 29 |
Chris@16 | 30 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 31 // with_error |
Chris@16 | 32 // |
Chris@16 | 33 template<BOOST_PP_ENUM_PARAMS(BOOST_ACCUMULATORS_MAX_FEATURES, typename Feature)> |
Chris@16 | 34 struct with_error |
Chris@16 | 35 : mpl::transform_view< |
Chris@16 | 36 mpl::vector<BOOST_PP_ENUM_PARAMS(BOOST_ACCUMULATORS_MAX_FEATURES, Feature)> |
Chris@16 | 37 , detail::error_of_tag<mpl::_1> |
Chris@16 | 38 > |
Chris@16 | 39 { |
Chris@16 | 40 }; |
Chris@16 | 41 |
Chris@16 | 42 }} // namespace boost::accumulators |
Chris@16 | 43 |
Chris@16 | 44 #endif |