
2 Jun
2011
2 Jun
'11
3:34 p.m.
Not strictly true. Even though the requirement is specified for the general container requirements, it's possible for a container to remove that requirement. As "forward_list" does, by removing the "size()" member function.
Ah. Thank you for the clarification. This makes me wonder how important size() actually is for heaps. Most of the algorithms I've seen simply use empty(). Andrew