全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Reference?

又称: reference (C++)

Definition 1.1 University Computer Science — Year 2 · 第 1 章 — From C to C++: Classes and Resource Management

A reference of type T & is another name for an existing object of type T. It is bound once, when it is declared, and never rebound; reading or assigning the reference reads or assigns the object it names. A reference cannot be null. A const reference const T & names the object but allows only reading it.

在原文中阅读 →