boat
C++23 geospatial library
Loading...
Searching...
No Matches
boat::gui::caches::lru Class Reference

#include <lru.hpp>

Inheritance diagram for boat::gui::caches::lru:
Collaboration diagram for boat::gui::caches::lru:

Public Member Functions

 lru (size_t capacity)
std::any get (any_hashable const &key) override
 Returns an empty std::any on a miss.
void put (any_hashable key, std::any val) override
Public Member Functions inherited from boat::gui::caches::cache
virtual ~cache ()=default

Constructor & Destructor Documentation

◆ lru()

boat::gui::caches::lru::lru ( size_t capacity)
inlineexplicit

Member Function Documentation

◆ get()

std::any boat::gui::caches::lru::get ( any_hashable const & )
inlineoverridevirtual

Returns an empty std::any on a miss.

Implements boat::gui::caches::cache.

◆ put()

void boat::gui::caches::lru::put ( any_hashable key,
std::any val )
inlineoverridevirtual

The documentation for this class was generated from the following file: