C++ Language/Templates/TemplateParameters/DeducingTemplateParameters

Traditionally, template object initialization needed to explicitly list types:. Modern C++ compilers can automatically deduce those types:.

Additional information about deducing template-parameters (includes interactive examples)