c++11 new features

well long time passed since my last technical post, I think it is time to review what I learnt in these 10 months job, basically all about c++11/14 and some thing about work inside a team

1. All kinds of new pointer, unique_ptr or smart point
the idea of joining these new kinds of pointer into c++11 is coming from the thought that “when we can not take care of memory leak, specially to release the memory of pointer manually any more ?”

we do not have such kind of functionality in old c++, but we have some things with such kind of action pattern, which is to delete itself when it is out of use. Remember something, correct, it is class !

by using destructor, class instance will destroy itself including allocated memory if it is correctly coded. Using the same idea, c++ committee built these new kinds of pointer

2. lambda functions

……to be continued

Leave a Reply

Your email address will not be published. Required fields are marked *