mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
modify namespace result_of -> results
support C++14 type_traits
This commit is contained in:
parent
d386893a74
commit
bf0c7021cf
350 changed files with 2628 additions and 1912 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/prev_permutation.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/results.hpp>
|
||||
#include <sprout/sub_array/sub_array.hpp>
|
||||
#include <sprout/sub_array/sub.hpp>
|
||||
#include <sprout/utility/pair/pair.hpp>
|
||||
|
@ -21,13 +21,13 @@ namespace sprout {
|
|||
namespace fit {
|
||||
namespace detail {
|
||||
template<typename Container, typename Permutation>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::results::algorithm<Container>::type, bool>
|
||||
prev_permutation_impl_1(
|
||||
Container const& cont, Permutation const& perm,
|
||||
typename sprout::container_traits<Container>::difference_type offset
|
||||
)
|
||||
{
|
||||
return sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>(
|
||||
return sprout::pair<typename sprout::fit::results::algorithm<Container>::type, bool>(
|
||||
sprout::sub_copy(
|
||||
sprout::get_internal(perm.first),
|
||||
offset,
|
||||
|
@ -38,7 +38,7 @@ namespace sprout {
|
|||
}
|
||||
|
||||
template<typename Container, typename Compare>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::results::algorithm<Container>::type, bool>
|
||||
prev_permutation_impl(
|
||||
Container const& cont, Compare comp,
|
||||
typename sprout::container_traits<Container>::difference_type offset
|
||||
|
@ -51,14 +51,14 @@ namespace sprout {
|
|||
// prev_permutation
|
||||
//
|
||||
template<typename Container, typename Compare>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::results::algorithm<Container>::type, bool>
|
||||
prev_permutation(Container const& cont, Compare comp) {
|
||||
return sprout::fit::detail::prev_permutation_impl(cont, comp, sprout::internal_begin_offset(cont));
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
template<typename Container>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::results::algorithm<Container>::type, bool>
|
||||
prev_permutation_impl(
|
||||
Container const& cont,
|
||||
typename sprout::container_traits<Container>::difference_type offset
|
||||
|
@ -71,7 +71,7 @@ namespace sprout {
|
|||
// prev_permutation
|
||||
//
|
||||
template<typename Container>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::result_of::algorithm<Container>::type, bool>
|
||||
inline SPROUT_CONSTEXPR sprout::pair<typename sprout::fit::results::algorithm<Container>::type, bool>
|
||||
prev_permutation(Container const& cont) {
|
||||
return sprout::fit::detail::prev_permutation_impl(cont, sprout::internal_begin_offset(cont));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue