/*============================================================================= Copyright (c) 2011-2015 Bolero MURAKAMI 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) =============================================================================*/ #ifndef SPROUT_TPP_ALGORITHM_MIN_ELEMENT_HPP #define SPROUT_TPP_ALGORITHM_MIN_ELEMENT_HPP #include #include #include #include #include namespace sprout { namespace tpp { namespace detail { template struct min_value : public std::conditional<(U::value < T::value), U, T> {}; template struct min_element_impl : public std::tuple_element::type {}; template struct min_element_impl : public sprout::tpp::detail::min_value< typename sprout::tpp::detail::min_element_impl::type, typename sprout::tpp::detail::min_element_impl::type >::type {}; } // namespace detail // // min_element // template struct min_element : public sprout::tpp::detail::min_element_impl, 0, sizeof...(Types)> {}; // // min_element_c // template struct min_element_c : public sprout::tpp::min_element...> {}; } // namespace tpp } // namespace sprout #endif // #ifndef SPROUT_TPP_ALGORITHM_MIN_ELEMENT_HPP