Skip to content

Commit 5e50659

Browse files
jensmaurertkoeppe
authored andcommitted
[associative.reqmts], [unord.req] Fix typo in precondition for the 'merge' member function. (#1080)
Fixes #919.
1 parent 24fb65b commit 5e50659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/containers.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@
18351835

18361836
\tcode{a.merge(a2)} &
18371837
\tcode{void} &
1838-
pre: \tcode{a_eq.get_allocator() == nh.get_allocator()}.\br
1838+
pre: \tcode{a.get_allocator() == a2.get_allocator()}.\br
18391839
Attempts to extract each element in \tcode{a2} and insert it into \tcode{a}
18401840
using the comparison object of \tcode{a}. In containers with unique keys,
18411841
if there is an element in \tcode{a} with key equivalent to the key of an
@@ -2566,7 +2566,7 @@
25662566
%
25672567
\tcode{a.merge(a2)} &
25682568
\tcode{void} &
2569-
Pre: \tcode{a_eq.get_allocator() == nh.get_allocator()}.\br
2569+
Pre: \tcode{a.get_allocator() == a2.get_allocator()}.\br
25702570
Attempts to extract each element in \tcode{a2} and insert it into \tcode{a}
25712571
using the hash function and key equality predicate of \tcode{a}.
25722572
In containers with unique keys, if there is an element in \tcode{a} with

0 commit comments

Comments
 (0)