I am a little confused regarding std::piecewise_construct when used with std::map . Example:
std::map<std::string, std::string> m;
I'm not sure how emplace() knows how to handle this type of construct differently when piecewise_construct used. Shouldn't it be: std::piecewise_construct(std::forward_as_tuple("c"), std::forward_as_tuple(10, 'c')) ? As this only works with commas, I donβt see an overloaded comma operator or a special emplace overload to handle piecewise and then args variables (as shown here ).
source share