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

Method leaf

src/toml.hpp:11232–11247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11230 }
11231
11232 TOML_EXTERNAL_LINKAGE
11233 path path::leaf(size_t n) const
11234 {
11235 path leaf_path{};
11236
11237 n = n > components_.size() ? components_.size() : n;
11238
11239 if (n > 0)
11240 {
11241 leaf_path.components_.insert(leaf_path.components_.begin(),
11242 components_.end() - static_cast<int>(n),
11243 components_.end());
11244 }
11245
11246 return leaf_path;
11247 }
11248
11249 TOML_EXTERNAL_LINKAGE
11250 path path::subpath(std::vector<path_component>::const_iterator start,

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected