Title
clear() complexity for associative containers refers to undefined N
Status
tc1
Section
[associative.reqmts]
Submitter
Ed Brey

Created on 2000-03-23.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

It's the "log(size())", not the "N", that is in error: there's no difference between O(N) and O(N + log(N)). The text in the standard is probably an incorrect cut-and-paste from the range version of erase.

Date: 2010-10-21.18:28:33

Proposed resolution:

In the associative container requirements table in 23.1.2 paragraph 7, the complexity of a.clear(), change "log(size()) + N" to "linear in size()".

Date: 2000-03-23.00:00:00

In the associative container requirements table in 23.1.2 paragraph 7, a.clear() has complexity "log(size()) + N". However, the meaning of N is not defined.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1905
2010-10-21 18:28:33adminsetmessages: + msg1904
2000-03-23 00:00:00admincreate