1 //===----------------------------------------------------------------------===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 9 // <set> 10 11 // class set 12 13 // set(const allocator_type& a); 14 15 #include <set> 16 #include <cassert> 17 18 #include "test_allocator.h" 19 20 int main(int, char**) 21 { 22 typedef std::less<int> C; 23 typedef test_allocator<int> A; 24 std::set<int, C, A> m(A(5)); 25 assert(m.empty()); 26 assert(m.begin() == m.end()); 27 assert(m.get_allocator() == A(5)); 28 29 return 0; 30 } 31