aboutsummaryrefslogtreecommitdiff
path: root/include/atp/core/term_bank.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-07 03:59:58 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-07 03:59:58 +0800
commit5ab3efd522cf0221481684b5bbc9c2ac6bfc9919 (patch)
tree9c521dedd2bc49bdbac642a0640dd048b6d8e4a1 /include/atp/core/term_bank.h
parentbf4f464cec8b6515d9e5131d43847ef9b2fd21d1 (diff)
downloadratp-5ab3efd522cf0221481684b5bbc9c2ac6bfc9919.tar.gz
ratp-5ab3efd522cf0221481684b5bbc9c2ac6bfc9919.tar.xz
refactor: rename struct members to follow trailing underscore naming convention across core, search, and frontend components
Diffstat (limited to 'include/atp/core/term_bank.h')
-rw-r--r--include/atp/core/term_bank.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/atp/core/term_bank.h b/include/atp/core/term_bank.h
index f909e2f..3339ceb 100644
--- a/include/atp/core/term_bank.h
+++ b/include/atp/core/term_bank.h
@@ -61,17 +61,17 @@ class TermBank {
private:
struct TermKey {
- SymbolId symbol;
- std::vector<TermId> args;
+ SymbolId symbol_;
+ std::vector<TermId> args_;
bool operator==(const TermKey& other) const = default;
};
struct TermKeyHash {
size_t operator()(const TermKey& key) const {
- size_t seed = std::hash<uint32_t>{}(key.symbol);
- for (TermId arg : key.args) {
- seed ^= std::hash<uint32_t>{}(arg) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
+ size_t seed = std::hash<uint32_t>{}(key.symbol_);
+ for (const TermId kArg : key.args_) {
+ seed ^= std::hash<TermId>{}(kArg) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
return seed;
}