MCPcopy Create free account
hub / github.com/boost-ext/ut / operator|

Function operator|

include/boost/ut.hpp:2756–2770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2754template <class F, class T>
2755 requires std::ranges::range<T>
2756[[nodiscard]] constexpr auto operator|(const F& f, const T& t) {
2757 return [f, t](std::string_view type, std::string_view name) {
2758 for (int counter = 1; const auto& arg : t) {
2759 detail::on<F>(events::test<F, decltype(arg)>{
2760 .type = type,
2761 .name = std::string{name} + " (" +
2762 format_test_parameter(arg, counter) + ")",
2763 .tag = {},
2764 .location = {},
2765 .arg = arg,
2766 .run = f});
2767 ++counter;
2768 }
2769 };
2770}
2771
2772template <class F, template <class...> class T, class... Ts>
2773 requires(!std::ranges::range<T<Ts...>>)

Callers

nothing calls this directly

Calls 1

format_test_parameterFunction · 0.70

Tested by

no test coverage detected