From 5adeb648f74c1771164c0686d6e0fc584cf36d9e Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 2 Jul 2025 04:00:06 +0100 Subject: move everything from util to core --- nihil.util/match.ccm | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 nihil.util/match.ccm (limited to 'nihil.util/match.ccm') diff --git a/nihil.util/match.ccm b/nihil.util/match.ccm deleted file mode 100644 index b72416a..0000000 --- a/nihil.util/match.ccm +++ /dev/null @@ -1,18 +0,0 @@ -// This source code is released into the public domain. -export module nihil.util:match; - -import nihil.std; - -namespace nihil { - -export template -struct match : Ts... { using Ts::operator()...; }; - -export template -[[nodiscard]] constexpr decltype(auto) operator| - (std::variant const &v, match const &match) -{ - return std::visit(match, v); -} - -} // namespace nihil -- cgit v1.2.3