
上QQ阅读APP看书,第一时间看更新
Letting the constructor automatically deduce the resulting template class type
A lot of classes in C++ are usually specialized on types, which could be easily deduced from the variable types the user puts in their constructor calls. Nevertheless, before C++17, this was not a standardized feature. C++17 lets the compiler automatically deduce template types from constructor calls.