Files
externals/linux/include/ActivBoost/accumulators/statistics/with_error.hpp
T
2023-12-15 13:15:08 -05:00

45 lines
1.3 KiB
C++

///////////////////////////////////////////////////////////////////////////////
// with_error.hpp
//
// Copyright 2005 Eric Niebler. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef ACTIV_BOOST_ACCUMULATORS_STATISTICS_WITH_ERROR_HPP_EAN_01_11_2005
#define ACTIV_BOOST_ACCUMULATORS_STATISTICS_WITH_ERROR_HPP_EAN_01_11_2005
#include <ActivBoost/preprocessor/repetition/enum_params.hpp>
#include <ActivBoost/mpl/vector.hpp>
#include <ActivBoost/mpl/transform_view.hpp>
#include <ActivBoost/mpl/placeholders.hpp>
#include <ActivBoost/accumulators/statistics_fwd.hpp>
#include <ActivBoost/accumulators/statistics/error_of.hpp>
namespace Boost { namespace accumulators
{
namespace detail
{
template<typename Feature>
struct error_of_tag
{
typedef tag::error_of<Feature> type;
};
}
///////////////////////////////////////////////////////////////////////////////
// with_error
//
template<ACTIV_BOOST_PP_ENUM_PARAMS(ACTIV_BOOST_ACCUMULATORS_MAX_FEATURES, typename Feature)>
struct with_error
: mpl::transform_view<
mpl::vector<ACTIV_BOOST_PP_ENUM_PARAMS(ACTIV_BOOST_ACCUMULATORS_MAX_FEATURES, Feature)>
, detail::error_of_tag<mpl::_1>
>
{
};
}} // namespace Boost::accumulators
#endif