/* * Copyright 2026 Axel Waggershauser */ // SPDX-License-Identifier: Apache-2.0 #pragma once #include #if defined(__cpp_lib_print) && __cpp_lib_print >= 202207L #include #else #include #include #include namespace std { template inline void print(std::format_string fmt, Args&&... args) { auto s = std::format(fmt, std::forward(args)...); std::fwrite(s.data(), 1, s.size(), stdout); } template inline void println(std::format_string fmt, Args&&... args) { std::print(fmt, std::forward(args)...); std::fputc('\n', stdout); } } // namespace std #endif