MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / CStrLess

Class CStrLess

src/device/include/driver_registry.hpp:49–53  ·  view source on GitHub ↗

flat_map 中 const char* 键的比较器(使用 kstd::strcmp)。

Source from the content-addressed store, hash-verified

47
48/// flat_map 中 const char* 键的比较器(使用 kstd::strcmp)。
49struct CStrLess {
50 auto operator()(const char* a, const char* b) const -> bool {
51 return kstd::strcmp(a, b) < 0;
52 }
53};
54
55/**
56 * @brief 驱动注册表 — 以 ETL vector 存储 DriverEntry,并附带 flat_map

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected