SimpleStrategy class
#include <src/microserve/memory.cppm>
Constructors, destructors, conversion operators
- SimpleStrategy(PoolConfig config = {}) explicit
- ~SimpleStrategy()
- SimpleStrategy(const SimpleStrategy&) deleted
Public functions
- auto operator=(const SimpleStrategy&) -> SimpleStrategy& deleted
- auto insert(std::span<const std::byte> bytes) -> Allocation
- auto insert_shared(const std::shared_ptr<void>& owner, std::span<const std::byte> bytes) -> Allocation
- auto capacity() const -> std::size_t noexcept
- auto used() const -> std::size_t noexcept
- auto evictions() const -> std::size_t noexcept
- auto resident() const -> std::size_t noexcept