MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / current_position

Method current_position

src/toml.hpp:13205–13210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13203
13204 TOML_NODISCARD
13205 source_position current_position(source_index fallback_offset = 0) const noexcept
13206 {
13207 if (!is_eof())
13208 return cp->position;
13209 return { prev_pos.line, static_cast<source_index>(prev_pos.column + fallback_offset) };
13210 }
13211
13212 template <typename... T>
13213 TOML_RETURNS_BY_THROWING

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected