modify namespace result_of -> results

support C++14 type_traits
This commit is contained in:
bolero-MURAKAMI 2013-11-20 22:04:11 +09:00
parent d386893a74
commit bf0c7021cf
350 changed files with 2628 additions and 1912 deletions

View file

@ -14,7 +14,7 @@
#include <sprout/container/traits.hpp>
#include <sprout/container/functions.hpp>
#include <sprout/iterator/operation.hpp>
#include <sprout/algorithm/fixed/result_of.hpp>
#include <sprout/algorithm/fixed/results.hpp>
#include <sprout/pit/pit.hpp>
#include <sprout/detail/container_complate.hpp>
@ -46,7 +46,7 @@ namespace sprout {
return call_gen<InitSize, Container>(gen, args...);
}
template<typename Container, typename Generator>
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Container>::type
inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm<Container>::type
recurrence_impl_drop(
Container const& cont, Generator const&,
typename sprout::container_traits<Container>::size_type
@ -57,7 +57,7 @@ namespace sprout {
template<typename Container, typename Generator, typename Head, typename... Inits>
inline SPROUT_CONSTEXPR typename std::enable_if<
(sprout::container_traits<Container>::static_size >= sizeof...(Inits) + 1),
typename sprout::fixed::result_of::algorithm<Container>::type
typename sprout::fixed::results::algorithm<Container>::type
>::type
recurrence_impl_drop(
Container const& cont, Generator const& gen,
@ -73,7 +73,7 @@ namespace sprout {
template<typename Container, typename Generator, typename Head, typename... Inits>
inline SPROUT_CONSTEXPR typename std::enable_if<
(sprout::container_traits<Container>::static_size < sizeof...(Inits) + 1),
typename sprout::fixed::result_of::algorithm<Container>::type
typename sprout::fixed::results::algorithm<Container>::type
>::type
recurrence_impl_drop(
Container const& cont, Generator const& gen,
@ -86,7 +86,7 @@ namespace sprout {
template<std::size_t InitSize, typename Container, typename Generator, typename... Args>
inline SPROUT_CONSTEXPR typename std::enable_if<
sprout::container_traits<Container>::static_size == sizeof...(Args),
typename sprout::fixed::result_of::algorithm<Container>::type
typename sprout::fixed::results::algorithm<Container>::type
>::type
recurrence_impl_1(
Container const& cont, Generator const&,
@ -99,7 +99,7 @@ namespace sprout {
template<std::size_t InitSize, typename Container, typename Generator, typename... Args>
inline SPROUT_CONSTEXPR typename std::enable_if<
sprout::container_traits<Container>::static_size != sizeof...(Args),
typename sprout::fixed::result_of::algorithm<Container>::type
typename sprout::fixed::results::algorithm<Container>::type
>::type
recurrence_impl_1(
Container const& cont, Generator const& gen,
@ -119,7 +119,7 @@ namespace sprout {
template<typename Container, typename Generator, typename... Inits>
inline SPROUT_CONSTEXPR typename std::enable_if<
(sprout::container_traits<Container>::static_size > sizeof...(Inits)),
typename sprout::fixed::result_of::algorithm<Container>::type
typename sprout::fixed::results::algorithm<Container>::type
>::type
recurrence_impl(
Container const& cont, Generator const& gen,
@ -135,7 +135,7 @@ namespace sprout {
template<typename Container, typename Generator, typename... Inits>
inline SPROUT_CONSTEXPR typename std::enable_if<
(sprout::container_traits<Container>::static_size <= sizeof...(Inits)),
typename sprout::fixed::result_of::algorithm<Container>::type
typename sprout::fixed::results::algorithm<Container>::type
>::type
recurrence_impl(
Container const& cont, Generator const& gen,
@ -150,13 +150,13 @@ namespace sprout {
// recurrence
//
template<typename Container, typename Generator, typename... Inits>
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Container>::type
inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm<Container>::type
recurrence(Container const& cont, Generator const& gen, Inits const&... inits) {
return sprout::fixed::detail::recurrence_impl(cont, gen, sprout::size(cont), inits...);
}
template<typename Container, typename Generator, typename... Inits>
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Container>::type
inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm<Container>::type
recurrence(Generator const& gen, Inits const&... inits) {
return sprout::fixed::recurrence(sprout::pit<Container>(), gen, inits...);
}