MCPcopy Create free account
hub / github.com/boostorg/filesystem / is_overlapping

Function is_overlapping

src/path.cpp:175–179  ·  view source on GitHub ↗

Checks if the second string overlaps in memory with the first string

Source from the content-addressed store, hash-verified

173
174// Checks if the second string overlaps in memory with the first string
175inline bool is_overlapping(string_type const& str, const value_type* arg)
176{
177 std::less< const value_type* > ptr_less{};
178 return !(ptr_less(arg, str.data()) || ptr_less(str.data() + str.size(), arg));
179}
180
181} // unnamed namespace
182

Callers 2

append_v3Method · 0.85
append_v4Method · 0.85

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected