/explore
|
You are here |
cppstories.com | ||
| | | | |
www.bfilipek.com
Some time ago I covered how to use custom deleters with smart pointers. The basic idea is to specify a dedicated method that will be called when a pointer is released. One logical application of custom deleters might be resource handles like files or the WinApi HANDLE type. Lets see how can we implement such thing. |
|
| | | | | ||
| | | | |
eyakubovich.github.io
Suppose we need to write a factory function that constructs a runtime polymorphic object. For the purposes of this post, let's say we want to construct a concrete shape object - a rectangle, triangle, or an ellipse. Here are our basic declarations: 1 2 3 4 5 6 7 8... |
|
| | | | | ||
| | | | |
dev.krzaq.cc
|
|
| | | | | ||
| | | | |
simoncoenen.com
Using compile-time string hashing to generate type information in C++ |
|
| | | |||