mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
fix container_traits for array-like classes
fix coding style algorithm/
This commit is contained in:
parent
06f1933220
commit
0c00166c5f
123 changed files with 1608 additions and 2224 deletions
|
@ -4,6 +4,11 @@
|
|||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/adl/not_found.hpp>
|
||||
|
||||
namespace sprout_adl {
|
||||
sprout::adl_not_found iterator_next(...);
|
||||
} // namespace sprout_adl
|
||||
|
||||
namespace sprout {
|
||||
namespace iterator_detail {
|
||||
|
@ -69,12 +74,14 @@ namespace sprout_iterator_detail {
|
|||
inline SPROUT_CONSTEXPR ForwardIterator
|
||||
next(ForwardIterator const& it) {
|
||||
using sprout::iterator_detail::iterator_next;
|
||||
using sprout_adl::iterator_next;
|
||||
return iterator_next(it);
|
||||
}
|
||||
template<typename ForwardIterator>
|
||||
inline SPROUT_CONSTEXPR ForwardIterator
|
||||
next(ForwardIterator const& it, typename std::iterator_traits<ForwardIterator>::difference_type n) {
|
||||
using sprout::iterator_detail::iterator_next;
|
||||
using sprout_adl::iterator_next;
|
||||
return iterator_next(it, n);
|
||||
}
|
||||
} // namespace sprout_iterator_detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue