upper_bound0.pass.cpp revision 1575e3e813f7f7cde31e699802fa1fcf8e84531c
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// XFAIL: c++98, c++03, c++11
11
12// <map>
13
14// class multimap
15
16//       iterator upper_bound(const key_type& k);
17// const_iterator upper_bound(const key_type& k) const;
18//
19//   The member function templates find, count, lower_bound, upper_bound, and
20// equal_range shall not participate in overload resolution unless the
21// qualified-id Compare::is_transparent is valid and denotes a type
22
23
24#include <map>
25#include <cassert>
26
27#include "is_transparent.h"
28
29int main()
30{
31    typedef std::multimap<int, double, transparent_less> M;
32
33    M().upper_bound(C2Int{5});
34}
35