Lines Matching refs:q
37 oneapi::tbb::concurrent_priority_queue<int> q(source.begin(), source.end()); in test_to_vector() local
38 std::vector<int> from_cpq = toVector(q); in test_to_vector()
460 cpq_type q(v.begin(), v.end()); in test_assignment_clear_swap() local
464 qo = q; in test_assignment_clear_swap()
468 REQUIRE_MESSAGE(qo == q, "Failed assignment equality test"); in test_assignment_clear_swap()
469 REQUIRE_MESSAGE(!(qo != q), "Failed assignment inequality test"); in test_assignment_clear_swap()
479 q.clear(); in test_assignment_clear_swap()
480 REQUIRE_MESSAGE(q.size() == 0, "Failed clear size test"); in test_assignment_clear_swap()
481 REQUIRE_MESSAGE(q.empty(), "Failed clear empty test"); in test_assignment_clear_swap()
487 q = qo; in test_assignment_clear_swap()
488 REQUIRE_MESSAGE(q.size() == 37, "Failed assignment size test"); in test_assignment_clear_swap()
489 REQUIRE_MESSAGE(!q.empty(), "Failed assignment empty test"); in test_assignment_clear_swap()
494 q.swap(qo); in test_assignment_clear_swap()
496 REQUIRE_MESSAGE(q.size() == 32, "Failed swap size test"); in test_assignment_clear_swap()
497 REQUIRE_MESSAGE(!q.empty(), "Failed swap empty test"); in test_assignment_clear_swap()
503 oneapi::tbb::concurrent_priority_queue<int, std::less<int>> q(MAX_ITER); in test_serial_push_pop() local
510 push_selector(q, e, i); in test_serial_push_pop()
514 REQUIRE_MESSAGE(q.size() == MAX_ITER, "Failed push size test"); in test_serial_push_pop()
515 REQUIRE_MESSAGE(!q.empty(), "Failed push empty test"); in test_serial_push_pop()
518 while(!q.empty()) { in test_serial_push_pop()
519 REQUIRE_MESSAGE(q.try_pop(e), "Failed pop test"); in test_serial_push_pop()
524 REQUIRE_MESSAGE(q.size() == MAX_ITER - count, "Failed pop size test"); in test_serial_push_pop()
525 REQUIRE_MESSAGE((!q.empty() || count == MAX_ITER), "Failed pop empty test"); in test_serial_push_pop()
527 REQUIRE_MESSAGE(!q.try_pop(e), "Failed: successful pop from the empty queue"); in test_serial_push_pop()