File indexing completed on 2026-01-07 10:09:49
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include <cstddef> // size_t
0012 #include <string> // string, to_string
0013
0014 #include <nlohmann/detail/abi_macros.hpp>
0015
0016 NLOHMANN_JSON_NAMESPACE_BEGIN
0017 namespace detail
0018 {
0019
0020 template<typename StringType>
0021 void int_to_string(StringType& target, std::size_t value)
0022 {
0023
0024 using std::to_string;
0025 target = to_string(value);
0026 }
0027
0028 template<typename StringType>
0029 StringType to_string(std::size_t value)
0030 {
0031 StringType result;
0032 int_to_string(result, value);
0033 return result;
0034 }
0035
0036 }
0037 NLOHMANN_JSON_NAMESPACE_END