Home
last modified time | relevance | path

Searched refs:rvalue_addable (Results 1 – 3 of 3) sorted by relevance

/llvm-project/libcxx/test/std/numerics/numeric.ops/accumulate/
H A Daccumulate_op.pass.cpp28 struct rvalue_addable struct
33 constexpr rvalue_addable operator()(rvalue_addable&& r, rvalue_addable const&) { in operator ()() argument
39 constexpr rvalue_addable operator+(rvalue_addable& lhs, rvalue_addable const&) in operator +()
45 constexpr rvalue_addable operator+(rvalue_addable&& lhs, rvalue_addable const&) in operator +()
54 rvalue_addable arr[100]; in test_use_move()
55 auto res1 = std::accumulate(arr, arr + 100, rvalue_addable()); in test_use_move()
56 auto res2 = std::accumulate(arr, arr + 100, rvalue_addable(), /*predicate=*/rvalue_addable()); in test_use_move()
/llvm-project/libcxx/test/std/numerics/numeric.ops/inner.product/
H A Dinner_product_comp.pass.cpp39 struct rvalue_addable struct
43 constexpr rvalue_addable operator*(rvalue_addable const&) { return *this; } in operator *() argument
46 constexpr rvalue_addable operator()(rvalue_addable&& r, rvalue_addable const&) { in operator ()() argument
52 constexpr rvalue_addable operator+(rvalue_addable& lhs, rvalue_addable const&) in operator +()
58 constexpr rvalue_addable operator+(rvalue_addable&& lhs, rvalue_addable const&) in operator +()
67 rvalue_addable arr[100]; in test_use_move()
68 auto res1 = std::inner_product(arr, arr + 100, arr, rvalue_addable()); in test_use_move()
69 …auto res2 = std::inner_product(arr, arr + 100, arr, rvalue_addable(), /*predicate=*/rvalue_addable in test_use_move()
/llvm-project/libcxx/test/std/numerics/numeric.ops/partial.sum/
H A Dpartial_sum_op.pass.cpp30 struct rvalue_addable struct
35 constexpr rvalue_addable operator()(rvalue_addable&& r, rvalue_addable const&) { in operator ()() argument
41 constexpr rvalue_addable operator+(rvalue_addable& lhs, rvalue_addable const&) in operator +()
47 constexpr rvalue_addable operator+(rvalue_addable&& lhs, rvalue_addable const&) in operator +()
57 rvalue_addable arr[size]; in test_use_move()
58 rvalue_addable res1[size]; in test_use_move()
59 rvalue_addable res2[size]; in test_use_move()
61 std::partial_sum(arr, arr + size, res2, /*predicate=*/rvalue_addable()); in test_use_move()