1.1(忽然觉得写这些好没意思啊,算了,直接看源码。) |
1 nullptr和nullptr_t |
C++ let you use nullptr instead of NULL or 0 to specify that a pointer refers to no values(while differs from having an undefined values); |
nullptr_t 代表的是一个空指针的类型,定义在<cstddef>中。 |
so you can overload operations for the case that a null pointer is passwd; |
思考,如果你传进来一个NULL,那么是当空指针还是整数。 |
1.2 |
|