explicit template specialization

explicit (full) template specialization

Allows customizing the template code for a given set of template arguments.

Syntax

template <> declaration

Any of the following can be fully specialized:

  1. function template
  2. class template
  3. (since C++14)variable template
  4. 登录查看完整内容