mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add generators::next_value function
This commit is contained in:
parent
2fe34cc922
commit
51614b1356
16 changed files with 681 additions and 98 deletions
|
@ -28,7 +28,7 @@ namespace sprout {
|
|||
// && callable sprout::as_const(t).next_generator()
|
||||
// -> sprout::const_reference_cast<decltype(std::declval<T&>().next_generator())>(sprout::as_const(cont).next_generator())
|
||||
// otherwise, callable t.next_generator() -> t.next_generator()
|
||||
// otherwise, T is InputIterator -> sprout::next(t)
|
||||
// otherwise, T is InputIterator -> t
|
||||
// otherwise -> sprout::tuples::get<0>(t)
|
||||
//
|
||||
template<typename T>
|
||||
|
@ -39,8 +39,6 @@ namespace sprout {
|
|||
return sprout::generators::generator_access_traits<typename std::remove_reference<T>::type>::get_next_generator(SPROUT_FORWARD(T, t));
|
||||
}
|
||||
} // namespace generators
|
||||
|
||||
using sprout::generators::next_generator;
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_GENERATOR_NEXT_GENERATOR_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue