1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 // multiset& operator=(initializer_list<value_type> il);
19 #include "min_allocator.h"
23 #ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
25 typedef std::multiset<int> C;
26 typedef C::value_type V;
28 m = {1, 2, 3, 4, 5, 6};
29 assert(m.size() == 6);
30 assert(distance(m.begin(), m.end()) == 6);
31 C::const_iterator i = m.cbegin();
39 #endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
40 #if TEST_STD_VER >= 11
42 typedef std::multiset<int, std::less<int>, min_allocator<int>> C;
43 typedef C::value_type V;
45 m = {1, 2, 3, 4, 5, 6};
46 assert(m.size() == 6);
47 assert(distance(m.begin(), m.end()) == 6);
48 C::const_iterator i = m.cbegin();