In C++17 code, I sometimes see something like:
void myfunction(const std::string& arg1, int arg2) {
//...
}
void otherfunction() {
myfunction("a",1);
myfunction({},2);
myfunction("b",{});
myfunction({},{});
}
What do the empty curly brace arguments means?
I found that I get an empty string and 0 integer, so I suppose it's some kind of default value.