Replace robin_hood map and set with STD alternative and add safeVal() function for map/vector access with fallback

This commit is contained in:
aristocratos
2023-12-25 02:26:13 +01:00
parent a2325371d4
commit ced47a960f
19 changed files with 261 additions and 214 deletions

View File

@@ -29,7 +29,7 @@ using namespace Tools;
namespace Gpu {
vector<string> gpu_names;
vector<int> gpu_b_height_offsets;
unordered_flat_map<string, deque<long long>> shared_gpu_percent = {
std::unordered_map<string, deque<long long>> shared_gpu_percent = {
{"gpu-average", {}},
{"gpu-vram-total", {}},
{"gpu-pwr-total", {}},