当前位置:网站首页>Lvalue reference and lvalue reference
Lvalue reference and lvalue reference
2022-06-30 20:35:00 【Rabbit cloud program】
What is quotation
Reference is to get an alias for an existing variable , Instead of defining a new variable . The compiler does not open up new memory space for reference variables , The referenced variable and the referenced variable share the same memory space .

The rules quoted
Reference must be initialized at definition time
A variable can have multiple references
Reference once an entity is referenced , No more references to other entities
What is left value , Right value
The right quotation is C++ 11 New features , Lvalue reference from C++ 98 There's been .
At present, we focus on C++ programing language .
The left value (left-values), abbreviation :lvalues
Right value (right-values), abbreviation :rvalues
You can easily understand lvalues An object that exists outside a single expression . You can think of an lvalue as an object with a name .
rvalues Is an object whose value exists temporarily within a single expression . Simply speaking , The right value is the value at the end of a life cycle . It's also called dying value .

The following is the principle written on the official website
边栏推荐
- 杰理之关于长按开机检测抬起问题【篇】
- Originpro 2021 with installation tutorial
- 杰理之用测试盒配对软件修改注意点【篇】
- 分析超700万个研发需求发现,这八大编程语言才是行业最需要的
- Jerry's touch key recognition process [chapter]
- Jenkins打包拉取不到最新的jar包
- 【Try to Hack】Windows系统账户安全
- Jerry's touch key recognition process [chapter]
- Jerry's question about long press boot detection [chapter]
- Lumiprobe蛋白质定量丨QuDye 蛋白定量试剂盒
猜你喜欢

DEX file parsing - Method_ IDS resolution

项目经理是领导吗?可以批评指责成员吗?
![Jerry's touch key recognition process [chapter]](/img/ec/25d2d6fd26571e4fb642129a4eee1b.png)
Jerry's touch key recognition process [chapter]
![[try to hack] windows system account security](/img/2b/e6e999313e3ae4e1cbf4bfa02daef0.png)
[try to hack] windows system account security

A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities

Halcon知识:盘点一下计量对象【1】

AVL平衡二叉树(一) - 概念与C语言实现

Maya house modeling

Huffman tree (I) basic concept and C language implementation

谈谈内联函数
随机推荐
昨晚 Spark Summit 重要功能发布全在这里(附超清视频)
凌云出海记 | 一零跃动&华为云:共助非洲普惠金融服务
Evolution of screen display technology
Wechat applet development practice cloud music
[iccv 2019] characteristics precise supervision of feature super resolution for small object detection
北京大学ACM Problems 1005:I Think I Need a Houseboat
数据库 OLAP、OLTP是什么?相同和不同?适用场景
DEX file parsing - Method_ IDS resolution
NLP paper lead reading | what about the degradation of text generation model? Simctg tells you the answer
AVL平衡二叉树(一) - 概念与C语言实现
Huffman tree (I) basic concept and C language implementation
PM reports work like this, and the boss is willing to give you a raise
Summary of PHP file upload (garbled code, move failure, permission, display picture)
项目经理面试常见问题及回答技巧
PHP require/include differences
Lingyun going to sea | 10 leap &huawei cloud: jointly helping Africa with inclusive financial services
杰理之触摸按键识别流程【篇】
QT QStringList用法
Solve the problems of Devops landing in complex environment with various tools with full stack and full function solutions
北京大学ACM Problems 1001:Exponentiation