
22 Jun
2011
22 Jun
'11
8:29 p.m.
Hello, I need to find out the size of a range defined by two ordered_non_unique iterators . Right now I just use std::distance() for this, however, the time complexity in this case is O(n). Is there some special way for calculating distances between multi-index container iterators? regards