/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
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.
0.6 parsecs

Travel
| |
| | 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...
4.4 parsecs

Travel
| |
| | dev.krzaq.cc


3.2 parsecs

Travel
| |
| | simoncoenen.com

Using compile-time string hashing to generate type information in C++
31.3 parsecs

Travel
|