文章分类 -  C++新特性

C++新特性学习
摘要:英文原文 左右值相关 Introduction c语言中的左值、右值定义:An lvalue is an expression e that may appear on the left or on the right hand side of an assignment, whereas an r 阅读全文
posted @ 2023-02-18 21:56 仙人修凡 阅读(103) 评论(0) 推荐(0)
摘要:RAII RAII(Resource Acquisition Is Initialization, 资源获取即初始化),指资源在拿到时就已经初始化,不需要的时候可以自动释放该资源。可以节省代码手动释放资源的复杂度。 在C++中的表现形式一般为将资源封装为类,然后在构造函数中获得资源(变量对象、锁), 阅读全文
posted @ 2022-11-15 19:47 仙人修凡 阅读(43) 评论(0) 推荐(0)