![copy](https://www.modernescpp.com/wp-content/uploads/2016/12/copy.jpg)
Copy versus Move Semantics: A few Numbers
/
0 Comments
A lot was written about the advantages of move semantics to copy semantics. Instead of an expensive copy…
![sizeof](https://www.modernescpp.com/wp-content/uploads/2016/12/sizeof.png)
std::array – Dynamic Memory, no Thanks
std::array combines the best of two worlds. On the one hand, std::array has the size and efficiency of…
![stringAndVector](https://www.modernescpp.com/wp-content/uploads/2016/12/stringAndVector.png)
Automatic Memory Management of the STL Containers
One of the significant advantages of a C++ string to a C string and of a std::vector to a C array is…
![weakPtr](https://www.modernescpp.com/wp-content/uploads/2016/12/weakPtr.png)
std::weak_ptr
std::unique_ptr models the concept of exclusive ownership, std::shared_ptr the concept of shared ownership.…
![enabledShared](https://www.modernescpp.com/wp-content/uploads/2016/12/enabledShared.png)
Specialities of std::shared_ptr
After I draw the big picture of a std::shared_ptr in the last post, I want to present two special aspects…
![sharedPtr](https://www.modernescpp.com/wp-content/uploads/2016/12/sharedPtr.jpg)
std::shared_ptr
std::shared_ptr's share the resource. The shared reference counter counts the number of owners. Copying…
![uniquePtr](https://www.modernescpp.com/wp-content/uploads/2016/12/uniquePtr.png)
std::unique_ptr
According to the RAII idiom, a std::unique_ptr manages automatically and exclusively the lifetime of…
![comparisonEng](https://www.modernescpp.com/wp-content/uploads/2016/12/comparisonEng.png)
Memory and Performance Overhead of Smart Pointers
C++11 offers four different smart pointers. I will have a closer look in this post regarding memory and…
![RessourcenmanagementEng](https://www.modernescpp.com/wp-content/uploads/2016/12/RessourcenmanagementEng.png)
Careful Handling of Resources
The careful handling of resources - may it be, for example, memory, files, or sockets - is a key concern…
Generalized Plain Old Data
Plain Old Data (POD) obeys the C standard layout. Therefore, you can directly apply the fast C functions…