UI: Massive revamp, new features and improvements

This commit is contained in:
Connor McLaughlin
2022-07-11 23:03:29 +10:00
parent 3fb61865e5
commit b42b5501f6
425 changed files with 39701 additions and 29487 deletions

View File

@ -1,4 +1,5 @@
#pragma once
#include "heterogeneous_containers.h"
#include <cstdint>
#include <map>
@ -13,7 +14,7 @@ class LRUCache
CounterType last_access;
};
using MapType = std::map<K, Item>;
using MapType = std::conditional_t<std::is_same_v<K, std::string>, StringMap<Item>, std::map<K, Item>>;
public:
LRUCache(std::size_t max_capacity = 16, bool manual_evict = false)