1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // explicit multimap(const key_compare& comp);
18 #include "test_macros.h"
19 #include "../../../test_compare.h"
20 #include "min_allocator.h"
25 typedef test_less
<int> C
;
26 const std::multimap
<int, double, C
> m(C(3));
28 assert(m
.begin() == m
.end());
29 assert(m
.key_comp() == C(3));
31 #if TEST_STD_VER >= 11
33 typedef test_less
<int> C
;
34 const std::multimap
<int, double, C
, min_allocator
<std::pair
<const int, double>>> m(C(3));
36 assert(m
.begin() == m
.end());
37 assert(m
.key_comp() == C(3));