Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Reference?

Também chamado de: reference (C++)

Definition 1.1 University Computer Science — Year 2 · Capítulo 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.

Ler no capítulo →