what is elvis operator
What is Elvis Operator (?:)
March 8, 2022
How to shuffle an array in JavaScript?
How to shuffle an array in JavaScript?
March 22, 2022

March 15, 2022

Template Deduction Guide

Template deduction guides are patterns associated with a template class that tell the compiler how to translate a set of parameters (and their types) into template arguments.

template<typename T>
struct Foo
{
  T t;
};

Foo (const char *) -> Foo<std::string>;
//var.t is a 'std::string
Foo var{"A String"};
Template Deduction Guide
This website uses cookies to improve your experience. By using this website you agree to our Data Privacy Statement
Read more