问题
C++引入引用类型,和传统的指针有什么不同呢?
回答
参考,一句话解释:
A reference can be thought of as a constant pointer (not to be confused with a pointer to a constant value!) with automatic indirection, i.e the compiler will apply the * operator for you.
引用
就是自动嵌套的常量指针