1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

change generator_access_traits adapt

This commit is contained in:
bolero-MURAKAMI 2016-04-27 16:49:47 +09:00
parent 7f137c0a83
commit 2fe34cc922
4 changed files with 117 additions and 0 deletions

View file

@ -28,6 +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 -> sprout::tuples::get<0>(t)
//
template<typename T>