1*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 2*0a6a1f1dSLionel Sambuc // 3*0a6a1f1dSLionel Sambuc // The LLVM Compiler Infrastructure 4*0a6a1f1dSLionel Sambuc // 5*0a6a1f1dSLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open 6*0a6a1f1dSLionel Sambuc // Source Licenses. See LICENSE.TXT for details. 7*0a6a1f1dSLionel Sambuc // 8*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc // <map> 11*0a6a1f1dSLionel Sambuc 12*0a6a1f1dSLionel Sambuc // class multimap 13*0a6a1f1dSLionel Sambuc 14*0a6a1f1dSLionel Sambuc // explicit multimap(const key_compare& comp); 15*0a6a1f1dSLionel Sambuc 16*0a6a1f1dSLionel Sambuc #include <map> 17*0a6a1f1dSLionel Sambuc #include <cassert> 18*0a6a1f1dSLionel Sambuc 19*0a6a1f1dSLionel Sambuc #include "../../../test_compare.h" 20*0a6a1f1dSLionel Sambuc #include "min_allocator.h" 21*0a6a1f1dSLionel Sambuc main()22*0a6a1f1dSLionel Sambucint main() 23*0a6a1f1dSLionel Sambuc { 24*0a6a1f1dSLionel Sambuc { 25*0a6a1f1dSLionel Sambuc typedef test_compare<std::less<int> > C; 26*0a6a1f1dSLionel Sambuc std::multimap<int, double, C> m(C(3)); 27*0a6a1f1dSLionel Sambuc assert(m.empty()); 28*0a6a1f1dSLionel Sambuc assert(m.begin() == m.end()); 29*0a6a1f1dSLionel Sambuc assert(m.key_comp() == C(3)); 30*0a6a1f1dSLionel Sambuc } 31*0a6a1f1dSLionel Sambuc #if __cplusplus >= 201103L 32*0a6a1f1dSLionel Sambuc { 33*0a6a1f1dSLionel Sambuc typedef test_compare<std::less<int> > C; 34*0a6a1f1dSLionel Sambuc std::multimap<int, double, C, min_allocator<std::pair<const int, double>>> m(C(3)); 35*0a6a1f1dSLionel Sambuc assert(m.empty()); 36*0a6a1f1dSLionel Sambuc assert(m.begin() == m.end()); 37*0a6a1f1dSLionel Sambuc assert(m.key_comp() == C(3)); 38*0a6a1f1dSLionel Sambuc } 39*0a6a1f1dSLionel Sambuc #endif 40*0a6a1f1dSLionel Sambuc } 41