mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
destructive change sprout::generate -> sprout::unfold
add range adapter reversed, replaced, filtered
This commit is contained in:
parent
6b3f7ad894
commit
73ead93fe5
60 changed files with 3840 additions and 318 deletions
|
@ -1,7 +1,6 @@
|
|||
#ifndef SPROUT_UTILITY_PAIR_HPP
|
||||
#define SPROUT_UTILITY_PAIR_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <utility>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
|
@ -10,7 +9,6 @@
|
|||
#include <sprout/utility/move.hpp>
|
||||
#include <sprout/tuple/tuple.hpp>
|
||||
#include <sprout/functional/ref.hpp>
|
||||
#include <sprout/functional/hash/hash.hpp>
|
||||
|
||||
namespace sprout {
|
||||
// Copyright (C) 2011 RiSK (sscrisk)
|
||||
|
@ -145,7 +143,7 @@ namespace sprout {
|
|||
// swap
|
||||
//
|
||||
template<class T1, class T2>
|
||||
inline void swap(sprout::pair<T1, T2>& x, sprout::pair<T1, T2>& y) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(x.swap(y))) {
|
||||
inline void swap(pair<T1, T2>& x, pair<T1, T2>& y) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(x.swap(y))) {
|
||||
x.swap(y);
|
||||
}
|
||||
|
||||
|
@ -166,14 +164,6 @@ namespace sprout {
|
|||
sprout::forward<T2>(y)
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// hash_value
|
||||
//
|
||||
template<typename T1, typename T2>
|
||||
inline SPROUT_CONSTEXPR std::size_t hash_value(sprout::pair<T1, T2> const& v) {
|
||||
return sprout::hash_values(v.first, v.second);
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
namespace sprout {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue