I've looked at other topics, the answers usually solve the problem using parameters, but this is not the way I want. I'm new to C++, I was developing NodeJS before. Can we make a variable that we can access from the region we want like in NodeJS?
string read_from_ram(string& key) {
//how can I access and edit keysDB and valuesDB variables from here
}
int main(int argc, char* argv[]) {
auto [keysDB, valuesDB] = read_from_disk();
}