Horizon
Loading...
Searching...
No Matches
position_t.hpp
1#pragma once
2
3#include <cstddef> // size_t
4
5namespace nlohmann
6{
7namespace detail
8{
11{
13 std::size_t chars_read_total = 0;
15 std::size_t chars_read_current_line = 0;
17 std::size_t lines_read = 0;
18
20 constexpr operator size_t() const
21 {
22 return chars_read_total;
23 }
24};
25
26} // namespace detail
27} // namespace nlohmann
namespace for Niels Lohmann
Definition adl_serializer.hpp:12
struct to capture the start position of the current token
Definition position_t.hpp:11
std::size_t lines_read
the number of lines read
Definition position_t.hpp:17
std::size_t chars_read_current_line
the number of characters read in the current line
Definition position_t.hpp:15
std::size_t chars_read_total
the total number of characters read
Definition position_t.hpp:13