| 487 | |
| 488 | template <class F> |
| 489 | static bool compare(const value& x, const value& y, F f) |
| 490 | { |
| 491 | bool result = false; |
| 492 | visit_for_compare(x, [&](const auto& a) { |
| 493 | visit_for_compare(y, [&](const auto& b) { |
| 494 | if constexpr(std::is_same<decltype(a), decltype(b)>{}) |
| 495 | result = f(std::forward_as_tuple(x.get_key(), compare_decay(a)), |
| 496 | std::forward_as_tuple(y.get_key(), compare_decay(b))); |
| 497 | else |
| 498 | assert(false); // NOLINT |
| 499 | }); |
| 500 | }); |
| 501 | return result; |
| 502 | } |
| 503 | |
| 504 | value::type_t value::get_type() const |
| 505 | { |
no test coverage detected