Posts

ClassIdioms

Covariant Return Type

/
The Covariant Return Type of a member function allows an overriding member function to return a narrower…
patterns

The Proxy Pattern

/
The Proxy Pattern is probably the most influential design pattern for C++. The Proxy provides a placeholder…
trap

C++ Core Guidelines: More Traps in the Concurrency

/
Concurrency provides many ways to shoot yourself in the foot. The rules for today help you to know these…
weakPtr

std::weak_ptr

/
std::unique_ptr models the concept of exclusive ownership, std::shared_ptr the concept of shared ownership.…
enabledShared

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

std::shared_ptr

/
std::shared_ptr's share the resource. The shared reference counter counts the number of owners. Copying…
comparisonEng

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…