Changeset 2496
- Timestamp:
- Jun 22, 2011, 4:31:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/utility.h
r2476 r2496 41 41 #include <algorithm> 42 42 #include <cmath> 43 #include <iterator> 43 44 #include <stdexcept> 44 45 #include <vector> … … 231 232 BOOST_CONCEPT_ASSERT((Mutable_BidirectionalIterator<BidirectionalIterator2>)); 232 233 size_t n = std::distance(first, last); 233 std::advance(result, n); 234 --result; 235 std::advance(first, n); 234 if (!n) 235 return; 236 std::advance(result, n-1); 237 first = last; 236 238 --first; 237 239 size_t rank = n;
Note: See TracChangeset
for help on using the changeset viewer.