Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-07 10:09:49

0001 //     __ _____ _____ _____
0002 //  __|  |   __|     |   | |  JSON for Modern C++
0003 // |  |  |__   |  |  | | | |  version 3.12.0
0004 // |_____|_____|_____|_|___|  https://github.com/nlohmann/json
0005 //
0006 // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann <https://nlohmann.me>
0007 // SPDX-License-Identifier: MIT
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     // For ADL
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 }  // namespace detail
0037 NLOHMANN_JSON_NAMESPACE_END