mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
fix iterator distance implementation and adapt-interface
This commit is contained in:
parent
a4c7df65e0
commit
aec15c55a8
15 changed files with 194 additions and 154 deletions
|
@ -165,11 +165,11 @@ namespace sprout {
|
|||
}
|
||||
|
||||
//
|
||||
// distance
|
||||
// iterator_distance
|
||||
//
|
||||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<sprout::value_iterator<T> >::difference_type
|
||||
distance(sprout::value_iterator<T> first, sprout::value_iterator<T> last) {
|
||||
iterator_distance(sprout::value_iterator<T> first, sprout::value_iterator<T> last) {
|
||||
return last - first;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue