Sprout/sprout/algorithm/fit/results.hpp

45 lines
1.4 KiB
C++
Raw Normal View History

2013-08-08 09:54:33 +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
#include <type_traits>
2011-09-03 13:26:26 +00:00
#include <sprout/config.hpp>
#include <sprout/container/traits.hpp>
#include <sprout/container/metafunctions.hpp>
#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 {
namespace results {
2011-09-03 13:26:26 +00:00
//
// algorithm
//
template<typename Result>
struct algorithm {
public:
typedef sprout::sub_array<
typename std::decay<
typename sprout::containers::internal<
typename sprout::fixed::results::algorithm<Result>::type
>::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
} // 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