Skip to content

Commit 8123d82

Browse files
Dawn Perchikzygoloid
authored andcommitted
LWG3004 [string.capacity] and [vector.capacity] should specify time complexity for capacity()
1 parent e4e0ede commit 8123d82

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

source/containers.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5372,6 +5372,9 @@
53725372
\returns
53735373
The total number of elements that the vector can hold
53745374
without requiring reallocation.
5375+
5376+
\pnum
5377+
\complexity Constant time.
53755378
\end{itemdescr}
53765379

53775380
\indexlibrary{\idxcode{reserve}!\idxcode{vector}}%

source/strings.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,6 +1688,9 @@
16881688
\pnum
16891689
\returns
16901690
The size of the allocated storage in the string.
1691+
1692+
\pnum
1693+
\complexity Constant time.
16911694
\end{itemdescr}
16921695

16931696
\indexlibrarymember{reserve}{basic_string}%

0 commit comments

Comments
 (0)