Search code examples
c++templatesc++17template-argument-deduction

Making guides for function template argument deduction in C++


Before anyone says that this question is duplicate... I checked the other question and that didn't satisfy me. It was not what I was looking for.

  1. Is it possible to have argument deduction guides for function templates ?
  2. If yes then how ? It will be appreciated if someone can give easy examples.

Thanks in advance.


Solution

  • OK I got the answer actually functions can't have deduction guides. It only works with class templates. Thanks for pointing me to the right direction.