5 #include <hilti/base/cache.h>
6 #include <hilti/base/util.h>
8 namespace hilti::util {
27 name =
ID(util::toIdentifier(name));
32 if ( ! this->
has(x) ) {
37 x =
ID(util::fmt(
"%s_%d", name, ++i));
bool has(const ID &key) const
Definition: cache.h:18
void remove(const Key &key)
Definition: cache.h:69
const bool & put(const ID &key, bool value)
Definition: cache.h:66
void remove(const ID &id)
Definition: uniquer.h:42
ID get(ID name, bool normalize=true)
Definition: uniquer.h:25