Signed-off-by: Matan Breizman <mbreizma@redhat.com>
}
}
+ template <class F>
+ void for_each(F&& f) {
+ for (auto& v : lru_set) {
+ access(v);
+ f(TRef{static_cast<T*>(&v)});
+ }
+ }
+
/**
* Returns the TRef corresponding to k if it exists or
* nullptr otherwise.
obc_lru.clear_range(from, to);
}
+ template <class F>
+ void for_each(F&& f) {
+ obc_lru.for_each(std::forward<F>(f));
+ }
+
const char** get_tracked_conf_keys() const final;
void handle_conf_change(const crimson::common::ConfigProxy& conf,
const std::set <std::string> &changed) final;