文章分类 - 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
阅读全文
摘要:RAII RAII(Resource Acquisition Is Initialization, 资源获取即初始化),指资源在拿到时就已经初始化,不需要的时候可以自动释放该资源。可以节省代码手动释放资源的复杂度。 在C++中的表现形式一般为将资源封装为类,然后在构造函数中获得资源(变量对象、锁),
阅读全文
浙公网安备 33010602011771号