Browse Source

policy_cache.hpp

getattr-cache
Antonio SJ Musumeci 9 months ago
parent
commit
a3f9323467
  1. 15
      src/policy_cache.hpp

15
src/policy_cache.hpp

@ -51,13 +51,14 @@ public:
std::string*
find(char const *key_)
{
Map::const_iterator i;
i = _cache.find(key_);
if(i == _cache.end())
return NULL;
return &i->second;
std::string rv;
auto func =
[&](const auto &v)
{
rv = v;
};
_cache.visit(key_, []
}
void

Loading…
Cancel
Save