Can someone explain the {} in c++. it is used with all containers. example.
I generally use it to make a container like set or vector empty.
I have confusion in using the min/ max function for multiple values with it.
vector<int> v = {1,2,3,4,5};
int a = min(v) // doesn't work.
int b = min({1,2,3,4,5}) // works and gives accurate answer.