Reference declaration

Declares a named variable as a reference, that is, an alias to an already-existing object or function.

# Notes

Feature-test macro Value Std Feature __cpp_rvalue_references 200610L (C++11) Rvalue references

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
CWG 453C++98it was unclear which object or function a reference cannot be bound tomade clear
CWG 1510C++11cv-qualified references could not be formed in the operand of decltypeallowed
CWG 2550C++98parameters could have type “reference to void”disallowed
CWG 2933C++98the behavior of accessing dangling references was unclearmade clear