1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 // iterator upper_bound(const key_type& k);
15 // const_iterator upper_bound(const key_type& k) const;
17 // The member function templates find, count, lower_bound, upper_bound, and
18 // equal_range shall not participate in overload resolution unless the
19 // qualified-id Compare::is_transparent is valid and denotes a type
25 #include "test_macros.h"
26 #include "is_transparent.h"
28 #if TEST_STD_VER <= 11
29 #error "This test requires is C++14 (or later)"
35 typedef std::map<int, double, transparent_less_private> M;
37 M().upper_bound(C2Int{5});