Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
size in addition to supporting
Random Access Range
now also supports extensibility via calls to the unqualified range_calculate_size(rng)
function.
boost::size(rng) is valid.
distance(rng) % stride_size
== 0
or stride_size <
distance(rng)