类外变量
static int a_static { 0 };
const int a_const { 0 };
extern int a_extern;
inline int a_inline { 0 };
inline static int a_inline_static { 0 };
类内变量
struct A {
int a { 0 };
static int b;
inline static int c { 0 };
static int& get_d()
{
static int d { 0 };
return d;
}
};
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)