Searched refs:constexpr_sum_fn (Results 1 – 1 of 1) sorted by relevance
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
D | apply.pass.cpp | 31 constexpr int constexpr_sum_fn() { return 0; } in constexpr_sum_fn() function 34 constexpr int constexpr_sum_fn(int x1, Ints... rest) { return x1 + constexpr_sum_fn(rest...); } in constexpr_sum_fn() function 40 return constexpr_sum_fn(values...); in operator ()() 52 static_assert(std::apply(static_cast<Fn>(constexpr_sum_fn), t) == 0, ""); in test_constexpr_evaluation() 59 static_assert(std::apply(static_cast<Fn>(constexpr_sum_fn), t) == 42, ""); in test_constexpr_evaluation() 66 static_assert(std::apply(static_cast<Fn>(constexpr_sum_fn), t) == 143, ""); in test_constexpr_evaluation() 73 static_assert(std::apply(static_cast<Fn>(constexpr_sum_fn), t) == 143, ""); in test_constexpr_evaluation() 80 static_assert(std::apply(static_cast<Fn>(constexpr_sum_fn), t) == 142, ""); in test_constexpr_evaluation() 87 static_assert(std::apply(static_cast<Fn>(constexpr_sum_fn), t) == 142, ""); in test_constexpr_evaluation()
|