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