Answers for "do you need inline for template in C++"

C++
1

do you need inline for template in C++

For non fully specialized function templates,
i.e. ones that carry at least one unknown type,
you can omit inline, and not receive errors,
but still they are not inline.
  
For full specializations,
i.e. ones that use only known types, you cannot omit it.
Posted by: Guest on February-21-2022

Code answers related to "do you need inline for template in C++"

Browse Popular Code Answers by Language