1
0
Fork 0
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:
bolero-MURAKAMI 2016-04-17 16:11:43 +09:00
parent 92cc7881d6
commit 8278a2642c
15 changed files with 454 additions and 100 deletions

View file

@ -23,8 +23,14 @@ namespace sprout {
// ADL callable range_end(cont) -> range_end(cont)
// [default]
// Container is T[N] -> iterator(cont)
// otherwise, ADL callable end(cont) -> end(cont)
// otherwise, callabe cont.end() -> cont.end()
// otherwise, Container is not const
// && sprout::is_const_iterator_cast_convertible<const_iterator, iterator>
// && (callable sprout::as_const(cont).end()
// || ADL(without sprout) callable end(sprout::as_const(cont))
// )
// -> sprout::const_iterator_cast<iterator>(sprout::end(sprout::as_const(cont)))
// otherwise, callable cont.end() -> cont.end()
// otherwise, ADL(without sprout) callable end(cont) -> end(cont)
// otherwise -> std::end(cont)
//
template<typename Container>