cpp/ranges/take view/size

Returns the number of elements, which is the smaller of the count passed to the constructor and the size of the underlying view.

Let be the underlying view,  be the number passed to the constructor ( if default constructed). Equivalent to

Parameters
(none)

Return value
The number of elements.