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

change begin, end traits

This commit is contained in:
bolero-MURAKAMI 2016-04-15 01:47:14 +09:00
parent e5637554d1
commit a6d46d4ffa
9 changed files with 445 additions and 5 deletions

View file

@ -22,8 +22,10 @@ namespace sprout {
// [default]
// ADL callable range_end(cont) -> range_end(cont)
// [default]
// Container is T[N] -> iterator(cont) + N
// otherwise -> cont.end()
// Container is T[N] -> iterator(cont)
// otherwise, ADL callable end(cont) -> end(cont)
// otherwise, callabe cont.end() -> cont.end()
// otherwise -> std::end(cont)
//
template<typename Container>
inline SPROUT_CONSTEXPR typename sprout::container_traits<Container>::iterator