2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2017-07-29 05:20:01 +00:00
|
|
|
Copyright (c) 2011-2017 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
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)
|
|
|
|
=============================================================================*/
|
2014-05-29 16:22:00 +00:00
|
|
|
#ifndef SPROUT_ALGORITHM_FIT_RESULTS_HPP
|
|
|
|
#define SPROUT_ALGORITHM_FIT_RESULTS_HPP
|
2011-09-03 13:26:26 +00:00
|
|
|
|
2012-03-31 07:24:13 +00:00
|
|
|
#include <type_traits>
|
2011-09-03 13:26:26 +00:00
|
|
|
#include <sprout/config.hpp>
|
2012-03-31 07:24:13 +00:00
|
|
|
#include <sprout/container/traits.hpp>
|
|
|
|
#include <sprout/container/metafunctions.hpp>
|
2013-11-20 13:04:11 +00:00
|
|
|
#include <sprout/algorithm/fixed/results.hpp>
|
2013-08-08 09:54:33 +00:00
|
|
|
#include <sprout/sub_array/sub_array.hpp>
|
2011-09-03 13:26:26 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace fit {
|
2013-11-20 13:04:11 +00:00
|
|
|
namespace results {
|
2011-09-03 13:26:26 +00:00
|
|
|
//
|
|
|
|
// algorithm
|
|
|
|
//
|
|
|
|
template<typename Result>
|
|
|
|
struct algorithm {
|
|
|
|
public:
|
|
|
|
typedef sprout::sub_array<
|
2012-03-31 07:24:13 +00:00
|
|
|
typename std::decay<
|
|
|
|
typename sprout::containers::internal<
|
2013-11-20 13:04:11 +00:00
|
|
|
typename sprout::fixed::results::algorithm<Result>::type
|
2012-03-31 07:24:13 +00:00
|
|
|
>::type
|
|
|
|
>::type
|
2011-09-03 13:26:26 +00:00
|
|
|
> type;
|
|
|
|
};
|
2017-10-10 10:25:53 +00:00
|
|
|
|
|
|
|
#if SPROUT_USE_TEMPLATE_ALIASES
|
|
|
|
template<typename Result>
|
|
|
|
using algorithm_t = typename sprout::fit::results::algorithm<Result>::type;
|
|
|
|
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
2013-11-20 13:04:11 +00:00
|
|
|
} // namespace results
|
2011-09-03 13:26:26 +00:00
|
|
|
} // namespace fit
|
|
|
|
} // namespace sprout
|
|
|
|
|
2014-05-29 16:22:00 +00:00
|
|
|
#endif // #ifndef SPROUT_ALGORITHM_FIT_RESULTS_HPP
|