MCPcopy Create free account
hub / github.com/apache/arrow / ByPath

Class ByPath

cpp/src/arrow/filesystem/filesystem.h:108–116  ·  view source on GitHub ↗

Function object implementing less-than comparison and hashing by path, to support sorting infos, using them as keys, and other interactions with the STL.

Source from the content-addressed store, hash-verified

106 /// path, to support sorting infos, using them as keys, and other
107 /// interactions with the STL.
108 struct ByPath {
109 bool operator()(const FileInfo& l, const FileInfo& r) const {
110 return l.path() < r.path();
111 }
112
113 size_t operator()(const FileInfo& i) const {
114 return std::hash<std::string>{}(i.path());
115 }
116 };
117
118 protected:
119 std::string path_;

Callers 1

MakeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected