In C++ what does template<> mean?

前端 未结 3 1025
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 18:33

It\'s not a syntax I\'m familiar with, but I saw it in another question, an example being:

template<> struct Allowed { };
3条回答
  •  春和景丽
    2021-01-31 19:08

    It's a specialization. template<> means that the specialization itself is not templated- i.e., it is an explicit specialization, not a partial specialization.

提交回复
热议问题