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 //===----------------------------------------------------------------------===//
18 #include "test_macros.h"
19 #include "min_allocator.h"
24 std::multimap
<int, double> m
;
26 assert(m
.begin() == m
.end());
28 #if TEST_STD_VER >= 11
30 std::multimap
<int, double, std::less
<int>, min_allocator
<std::pair
<const int, double>>> m
;
32 assert(m
.begin() == m
.end());
35 typedef explicit_allocator
<std::pair
<const int, double>> A
;
37 std::multimap
<int, double, std::less
<int>, A
> m
;
39 assert(m
.begin() == m
.end());
43 std::multimap
<int, double, std::less
<int>, A
> m(a
);
45 assert(m
.begin() == m
.end());
49 std::multimap
<int, double> m
= {};
51 assert(m
.begin() == m
.end());