xo-stringtable2: + is_gc_eligible() comptime flag
This commit is contained in:
parent
5f73ee7303
commit
b0b14d4e41
3 changed files with 6 additions and 1 deletions
|
|
@ -31,6 +31,9 @@ namespace xo {
|
|||
StringTable(size_type hint_max_capacity,
|
||||
bool debug_flag = false);
|
||||
|
||||
/** false -> not eligible for GC (maps own memory + not moveable) **/
|
||||
static constexpr bool is_gc_eligible() { return false; }
|
||||
|
||||
/** lookup interned string; nullptr if not present **/
|
||||
const DUniqueString * lookup(std::string_view key) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue