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 // <map> 10 11 // class multimap 12 13 // iterator lower_bound(const key_type& k); 14 // const_iterator lower_bound(const key_type& k) const; 15 // 16 // The member function templates find, count, lower_bound, upper_bound, and 17 // equal_range shall not participate in overload resolution unless the 18 // qualified-id Compare::is_transparent is valid and denotes a type 19 20 21 #include <map> 22 #include <cassert> 23 24 #include "test_macros.h" 25 #include "is_transparent.h" 26 27 #if TEST_STD_VER <= 11 28 #error "This test requires is C++14 (or later)" 29 #else 30 main(int,char **)31int main(int, char**) 32 { 33 { 34 typedef std::multimap<int, double, transparent_less_no_type> M; 35 36 TEST_IGNORE_NODISCARD M().lower_bound(C2Int{5}); 37 } 38 } 39 #endif 40