什么是模板<>内联bla bla [英] What is template<> inline bla bla

查看:48
本文介绍了什么是模板<>内联bla bla的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我偶然发现了以下内容:

I stumbled across the following:

template<> inline bool Value::GetValue<bool>() const {
    return m_Value.ValueBoolean();   // union
}

无法理解空模板声明的作用吗?

Can’t understand what the empty template declaration does ?

推荐答案

它是显式专业化

这篇关于什么是模板&lt;&gt;内联bla bla的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆