|
|
|||
File indexing completed on 2025-12-16 10:19:56
0001 // __ _____ _____ _____ 0002 // __| | __| | | | JSON for Modern C++ 0003 // | | |__ | | | | | | version 3.11.3 0004 // |_____|_____|_____|_|___| https://github.com/nlohmann/json 0005 // 0006 // SPDX-FileCopyrightText: 2013-2023 Niels Lohmann <https://nlohmann.me> 0007 // SPDX-License-Identifier: MIT 0008 0009 #pragma once 0010 0011 #include <cstddef> // size_t 0012 0013 #include <nlohmann/detail/abi_macros.hpp> 0014 0015 NLOHMANN_JSON_NAMESPACE_BEGIN 0016 namespace detail 0017 { 0018 0019 /// struct to capture the start position of the current token 0020 struct position_t 0021 { 0022 /// the total number of characters read 0023 std::size_t chars_read_total = 0; 0024 /// the number of characters read in the current line 0025 std::size_t chars_read_current_line = 0; 0026 /// the number of lines read 0027 std::size_t lines_read = 0; 0028 0029 /// conversion to size_t to preserve SAX interface 0030 constexpr operator size_t() const 0031 { 0032 return chars_read_total; 0033 } 0034 }; 0035 0036 } // namespace detail 0037 NLOHMANN_JSON_NAMESPACE_END
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|