1bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant//===----------------------------------------------------------------------===// 2bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant// 3f5256e16dfc425c1d466f6308d4026d529ce9e0bHoward Hinnant// The LLVM Compiler Infrastructure 4bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant// 5b64f8b07c104c6cc986570ac8ee0ed16a9f23976Howard Hinnant// This file is dual licensed under the MIT and the University of Illinois Open 6b64f8b07c104c6cc986570ac8ee0ed16a9f23976Howard Hinnant// Source Licenses. See LICENSE.TXT for details. 7bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant// 8bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant//===----------------------------------------------------------------------===// 9bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant 10bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant// <set> 11bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant 12bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant// class multiset 13bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant 14bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant// multiset(); 15bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant 16bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#include <set> 17bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#include <cassert> 18bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant 19061d0cc4db18d17bf01ed14c5db0be098205bd47Marshall Clow#include "min_allocator.h" 2070342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant 21bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnantint main() 22bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant{ 2370342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant { 24bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant std::multiset<int> m; 25bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant assert(m.empty()); 26bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant assert(m.begin() == m.end()); 2770342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant } 2870342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant#if __cplusplus >= 201103L 2970342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant { 3070342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant std::multiset<int, std::less<int>, min_allocator<int>> m; 3170342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant assert(m.empty()); 3270342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant assert(m.begin() == m.end()); 3370342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant } 3448c74700ec233e7b9ac0c1f06215cd443424cb62Marshall Clow { 3548c74700ec233e7b9ac0c1f06215cd443424cb62Marshall Clow std::multiset<int> m = {}; 3648c74700ec233e7b9ac0c1f06215cd443424cb62Marshall Clow assert(m.empty()); 3748c74700ec233e7b9ac0c1f06215cd443424cb62Marshall Clow assert(m.begin() == m.end()); 3848c74700ec233e7b9ac0c1f06215cd443424cb62Marshall Clow } 3970342b99e227912742972b754ad86e75c5d7eefbHoward Hinnant#endif 40bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant} 41