Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Templates/TemplateParameters/DeducingTemplateParameters

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Traditionally, template object initialization needed to explicitly list types: std::pair<float,int> fiVar = std::pair<float,int>(1.1F,2);. Modern C++ compilers can automatically deduce those types: std::pair fiVar = std::pair(1.1F,2);. Additional information about deducing template-parameters (includes interactive examples)