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

@ -23,7 +23,9 @@ namespace sprout {
// ADL callable range_begin(cont) -> range_begin(cont)
// [default]
// Container is T[N] -> iterator(cont)
// otherwise -> cont.begin()
// otherwise, ADL callable begin(cont) -> begin(cont)
// otherwise, callabe cont.begin() -> cont.begin()
// otherwise -> std::begin(cont)
//
template<typename Container>
inline SPROUT_CONSTEXPR typename sprout::container_traits<Container>::iterator