diff --git a/sprout/algorithm/fit/results.hpp b/sprout/algorithm/fit/results.hpp index 92809ef2..04fd7997 100644 --- a/sprout/algorithm/fit/results.hpp +++ b/sprout/algorithm/fit/results.hpp @@ -32,6 +32,11 @@ namespace sprout { >::type > type; }; + +#if SPROUT_USE_TEMPLATE_ALIASES + template + using algorithm_t = typename sprout::fit::results::algorithm::type; +#endif // #if SPROUT_USE_TEMPLATE_ALIASES } // namespace results } // namespace fit } // namespace sprout diff --git a/sprout/algorithm/fixed/results.hpp b/sprout/algorithm/fixed/results.hpp index 31c00d79..dde57454 100644 --- a/sprout/algorithm/fixed/results.hpp +++ b/sprout/algorithm/fixed/results.hpp @@ -25,17 +25,6 @@ namespace sprout { : public sprout::identity::copied_type> {}; - // - // resized_relative - // - template::difference_type RelativeSize> - struct resized_relative - : public std::decay< - typename sprout::container_transform_traits - ::template rebind_size::static_size + RelativeSize>::type - > - {}; - // // shuffle // @@ -48,12 +37,41 @@ namespace sprout { > > {}; + + // + // resized_relative + // + template::difference_type RelativeSize> + struct resized_relative + : public std::decay< + typename sprout::container_transform_traits + ::template rebind_size::static_size + RelativeSize>::type + > + {}; + +#if SPROUT_USE_TEMPLATE_ALIASES + template + using algorithm_t = typename sprout::fixed::results::algorithm::type; + + template + using shuffle_t = typename sprout::fixed::results::shuffle::type; + + template::difference_type RelativeSize> + using resized_relative_t = typename sprout::fixed::results::resized_relative::type; +#endif // #if SPROUT_USE_TEMPLATE_ALIASES } // namespace results } // namespace fixed namespace results { using sprout::fixed::results::algorithm; using sprout::fixed::results::shuffle; + using sprout::fixed::results::resized_relative; + +#if SPROUT_USE_TEMPLATE_ALIASES + using sprout::fixed::results::algorithm_t; + using sprout::fixed::results::shuffle_t; + using sprout::fixed::results::resized_relative_t; +#endif // #if SPROUT_USE_TEMPLATE_ALIASES } // namespace results } // namespace sprout