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 //===----------------------------------------------------------------------===//
15 // void insert(initializer_list<value_type> il);
21 #include "test_macros.h"
22 #include "min_allocator.h"
27 typedef std::multiset
<int> C
;
28 typedef C::value_type V
;
30 m
.insert({1, 2, 3, 4, 5, 6});
31 assert(m
.size() == 8);
32 assert(static_cast<std::size_t>(std::distance(m
.begin(), m
.end())) == m
.size());
33 C::const_iterator i
= m
.cbegin();
41 assert(*++i
== V(10));
44 typedef std::multiset
<int, std::less
<int>, min_allocator
<int>> C
;
45 typedef C::value_type V
;
47 m
.insert({1, 2, 3, 4, 5, 6});
48 assert(m
.size() == 8);
49 assert(static_cast<std::size_t>(std::distance(m
.begin(), m
.end())) == m
.size());
50 C::const_iterator i
= m
.cbegin();
58 assert(*++i
== V(10));