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 // set(initializer_list<value_type> il, const key_compare& comp = key_compare());
20 #include "test_macros.h"
21 #include "min_allocator.h"
26 typedef std::set
<int> C
;
27 typedef C::value_type V
;
28 C m
= {1, 2, 3, 4, 5, 6};
29 assert(m
.size() == 6);
30 assert(std::distance(m
.begin(), m
.end()) == 6);
31 C::const_iterator i
= m
.cbegin();
40 typedef std::set
<int, std::less
<int>, min_allocator
<int>> C
;
41 typedef C::value_type V
;
42 C m
= {1, 2, 3, 4, 5, 6};
43 assert(m
.size() == 6);
44 assert(std::distance(m
.begin(), m
.end()) == 6);
45 C::const_iterator i
= m
.cbegin();