当前位置:网站首页>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
边栏推荐
- 第81场双周赛
- Jerry's determination of detection sensitivity level [chapter]
- 杰理之触摸按键识别流程【篇】
- 北京大学ACM Problems 1002:487-3279
- AVL平衡二叉树(一) - 概念与C语言实现
- A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
- Jerry's question about long press boot detection [chapter]
- Web主机iptables防火墙安全脚本
- 北京大学ACM Problems 1000:A+B Problem
- Application of JDBC in performance test
猜你喜欢

Great God detailed open source Buff gain Introduction 丨 Live

PHP获取Opcode及C源码

Golang应用 ━━ 安装、配置与使用hugo博客系统

Jenkins can't pull the latest jar package

GeoServer installation

exness:美GDP终值意外加速萎缩1.6%

神经网络入门(上)

Maya house modeling

杰理之触摸按键识别流程【篇】

By analyzing more than 7million R & D needs, it is found that these eight programming languages are the most needed by the industry
随机推荐
动态样式绑定--style 和 class
Playwright - scroll bar operation
Black apple server system installation tutorial, black apple installation tutorial, teach you how to install black apple in detail [easy to understand]
杰理之用测试盒配对软件修改注意点【篇】
To eliminate bugs, developers must know several bug exploration and testing artifacts.
Exness: liquidity series - liquidity cleaning and reversal, decision interval
Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
Heartbeat uses NFS to make MySQL highly available based on CRM
基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享
Lumiprobe蛋白质定量丨QuDye 蛋白定量试剂盒
Heartbeat 与DRBD 配置过程
谈谈内联函数
网上炒股开户安全嘛!?
Jerry's question about long press boot detection [chapter]
Exness: the final value of US GDP unexpectedly accelerated to shrink by 1.6%
Go learning notes
The newly born robot dog can walk by himself after rolling for an hour. The latest achievement of Wu Enda's first disciple
PostgreSQL heap堆表 存储引擎实现原理
Lumiprobe核酸定量丨QuDye dsDNA BR 检测试剂盒
昨晚 Spark Summit 重要功能发布全在这里(附超清视频)