This commit is contained in:
Kbz-8
2025-06-16 15:18:27 +02:00
parent 15510fa8a7
commit cd7e5ad26f
165 changed files with 78107 additions and 0 deletions

22
Runtime/Includes/Core/Format.h git.filemode.normal_file
View File

@@ -0,0 +1,22 @@
#ifndef __SCOPE_CORE_FORMAT__
#define __SCOPE_CORE_FORMAT__
#include <type_traits>
#include <string_view>
#include <tuple>
namespace Scop
{
template<typename T, typename = void>
struct IsOstreamable : std::false_type {};
template<typename T>
struct IsOstreamable<T, std::void_t<decltype(std::declval<std::ostream>() << std::declval<T>())>> : std::true_type {};
template<typename... Args, std::enable_if_t<std::conjunction_v<IsOstreamable<Args>...>, int> = 0>
auto Format(std::string_view format, const Args&... args);
}
#include <Core/Format.inl>
#endif