While reading Cpp Primer 5ed Chapter15.8.1 (page631), I am confused by the definition of private member - item.
The original goes like:
std::multiset<std::shared_ptr<Quote>, decltype(compare)*> items{compare};
Shouldn't this be like:
std::multiset<std::shared_ptr<Quote>, decltype(compare)*> items(compare);
Here the compare works as the constructor argument.