This member function effectively calls the member with the same name in the underlying container object.
Parameters
noneReturn Value
The number of elements that conform the priority_queue's container content.Member type size_type is an unsigned integral type.
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
Output:
0. size: 0 1. size: 5 2. size: 4 |
Complexity
Constant.See also
| priority_queue::empty | Test whether container is empty (public member function) |
