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
This is an older version of Boost and was released in 2019. The current version is 1.89.0.
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 |
|