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 allocator_type& a);
18 #include "test_macros.h"
19 #include "test_allocator.h"
20 #include "min_allocator.h"
25 typedef std::less
<int> C
;
26 typedef test_allocator
<std::pair
<const int, double> > A
;
27 std::multimap
<int, double, C
, A
> m(A(5));
29 assert(m
.begin() == m
.end());
30 assert(m
.get_allocator() == A(5));
32 #if TEST_STD_VER >= 11
34 typedef std::less
<int> C
;
35 typedef min_allocator
<std::pair
<const int, double> > A
;
36 std::multimap
<int, double, C
, A
> m(A
{});
38 assert(m
.begin() == m
.end());
39 assert(m
.get_allocator() == A());
42 typedef std::less
<int> C
;
43 typedef explicit_allocator
<std::pair
<const int, double> > A
;
44 std::multimap
<int, double, C
, A
> m(A
{});
46 assert(m
.begin() == m
.end());
47 assert(m
.get_allocator() == A
{});