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
//===----------------------------------------------------------------------===//
12
// explicit priority_queue(const Compare& comp, container_type&& c);
17
#include "../../../MoveOnly.h"
19
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
26
for (int i = 0; i < n; ++i)
27
c.push_back(MoveOnly(i));
31
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
35
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
36
std::priority_queue<MoveOnly> q(std::less<MoveOnly>(), make<std::vector<MoveOnly> >(5));
37
assert(q.size() == 5);
38
assert(q.top() == MoveOnly(4));
39
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES