1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <set> 11 12 // class multiset 13 14 // explicit multiset(const value_compare& comp); 15 // value_compare and key_compare are the same type for set/multiset 16 17 // key_compare key_comp() const; 18 // value_compare value_comp() const; 19 20 #include <set> 21 #include <cassert> 22 23 #include "../../../test_compare.h" 24 25 int main() 26 { 27 typedef test_compare<std::less<int> > C; 28 const std::multiset<int, C> m(C(3)); 29 assert(m.empty()); 30 assert(m.begin() == m.end()); 31 assert(m.key_comp() == C(3)); 32 assert(m.value_comp() == C(3)); 33 } 34