You are here |
gcher.com | ||
| | | |
www.fluentcpp.com
|
|
| | | | Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type. | |
| | | |
www.foonathan.net
|
|
| | | | Just like regular function parameters, template parameters can also have default parameters. For class templates, this behaves mostly just like default function arguments: if you pass fewer template arguments than required, default template arguments are used to fill the remaining places. However, for function templates, it gets more complicated as template parameters for functions can be deduced by the normal function arguments. This leads to some interesting side-effects. In particular, default argumen... | |
| | | |
nelari.us
|
|
| | | | The second part of the series implements a full C++ wrapper for C++ functions and classes for Wren's C API. | |
| | | |
cppstories.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. Let's see how can we implement such thing. |