| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| // UNSUPPORTED: c++98, c++03 |
| // void insert(initializer_list<value_type> il); |
| #include "min_allocator.h" |
| typedef std::multiset<int> C; |
| m.insert({1, 2, 3, 4, 5, 6}); |
| assert(static_cast<std::size_t>(distance(m.begin(), m.end())) == m.size()); |
| C::const_iterator i = m.cbegin(); |
| typedef std::multiset<int, std::less<int>, min_allocator<int>> C; |
| m.insert({1, 2, 3, 4, 5, 6}); |
| assert(static_cast<std::size_t>(distance(m.begin(), m.end())) == m.size()); |
| C::const_iterator i = m.cbegin(); |