...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A range X
where boost::range_iterator<X>::type
is a model of Random
Access Traversal Iterator.
Name |
Expression |
Return type |
---|---|---|
Size of range |
|
|
Expression |
Semantics |
Postcondition |
---|---|---|
|
Returns the size of the Range, that is, its number of elements.
Note |
|
boost::size(a)
completes in amortized constant time.
Range size |
|