Add Utils::Overloaded helper

This commit is contained in:
2025-11-04 21:51:39 +10:00
parent 2b5c9ac062
commit a32cd24417
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/**
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
namespace Nova::Utils {
template<typename... Ts>
struct Overloaded : Ts... {
using Ts::operator()...;
};
template<typename... Ts>
Overloaded(Ts...) -> Overloaded<Ts...>;
} // namespace Nova::Utils