Add operator< for DirectoryListing
This commit is contained in:
parent
afe2148a17
commit
d8a3cd5dfb
5
deps/ox/src/ox/fs/filesystem.hpp
vendored
5
deps/ox/src/ox/fs/filesystem.hpp
vendored
@ -42,6 +42,11 @@ struct DirectoryListing {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename String>
|
||||||
|
bool operator<(const DirectoryListing<String> &a, const DirectoryListing<String> &b) {
|
||||||
|
return a.name < b.name;
|
||||||
|
}
|
||||||
|
|
||||||
template<typename InodeId_t>
|
template<typename InodeId_t>
|
||||||
struct __attribute__((packed)) DirectoryEntry {
|
struct __attribute__((packed)) DirectoryEntry {
|
||||||
InodeId_t inode;
|
InodeId_t inode;
|
||||||
|
Loading…
Reference in New Issue
Block a user