Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
带指针的结构体的 const 正确性
我有一个包含一些指针的结构 我希望这些值是不可修改的 但简单地在前面写 const 并不会使结构成员不可变 typedef struct int x int y point void get const point p int x int
c
constants
constcorrectness
一个对象能知道它自己的常量吗?
With decltype and std is const变量的常量可以从外部检测到 但是一个对象是否也有可能知道它自己的常量呢 用法应该是这样的 include
c
Reflection
C11
typetraits
constcorrectness
«
1
2