| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // iterator insert(P&& p); |
| #include "../../../MoveOnly.h" |
| typedef std::multimap<int, MoveOnly> M; |
| R r = m.insert(M::value_type(2, 2)); |
| r = m.insert(M::value_type(1, 1)); |
| r = m.insert(M::value_type(3, 3)); |
| assert(r == prev(m.end())); |
| r = m.insert(M::value_type(3, 3)); |
| assert(r == prev(m.end())); |