mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
change range functions adapt
This commit is contained in:
parent
92cc7881d6
commit
8278a2642c
15 changed files with 454 additions and 100 deletions
|
@ -23,6 +23,13 @@ namespace sprout {
|
|||
// ADL callable range_nth(cont, i) -> range_nth(cont, i)
|
||||
// [default]
|
||||
// Container is T[N] -> iterator(cont) + i
|
||||
// otherwise, Container is not const
|
||||
// && sprout::is_const_iterator_cast_convertible<const_iterator, iterator>
|
||||
// && (callable sprout::as_const(cont).nth(i)
|
||||
// || callable sprout::as_const(cont).begin()
|
||||
// || ADL(without sprout) callable begin(sprout::as_const(cont))
|
||||
// )
|
||||
// -> sprout::const_iterator_cast<iterator>(sprout::nth(sprout::as_const(cont), i))
|
||||
// otherwise, callable cont.nth(i) -> cont.nth(i)
|
||||
// otherwise -> sprout::next(sprout::begin(cont), i)
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue