2015年12月30日

Advanced C++ --- Compiler Generated Functions

摘要: C++在C的基础上添加了很多新的特性,其中包括了很被人熟知的OOP,范型编程等,但是很多大家不知道的应该是我们的C++编译器在什么时候为我们编写的类自动生成什么函数(赋值函数,析构函数,构造函数等),这些函数的内部又是如何操作的,这里我们就说说C++中类的Costructer, Destruct... 阅读全文

posted @ 2015-12-30 15:46 RookieCoder 阅读(305) 评论(0) 推荐(0)

Advanced C++ -- Logic Constness and Bitwise Constness

摘要: 首先介绍一下什么是Logic Constness和Bitwise Constness,Logic Constness指的是function 后的const修饰,我们只知道这个function被const修饰了,但是并没有任何变量被const,Bitwise Constness指的是变量(指针,或... 阅读全文

posted @ 2015-12-30 15:10 RookieCoder 阅读(1067) 评论(0) 推荐(0)

导航