blob: 0440e61f53770807230b61f42c0cdb746b213df2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//
// Created by martial.simon on 2/26/25.
//
#include "lookup_table.hh"
std::optional<long> LookupTable::get(int x)
{
if (table_.count(x) == 0)
return std::nullopt;
return table_.at(x);
}
void LookupTable::set(int x, long value)
{
table_.insert_or_assign(x, value);
}
|