|
You are here |
studiofreya.org | ||
| | | | |
nelari.us
|
|
| | | | | A small look at some useful template techniques, in the context of trying to bind functions to a virtual machine. I wrote this post mostly for myself so that these techniques would be listed all in one place. | |
| | | | |
eyakubovich.github.io
|
|
| | | | | It's a simple task -- you want iterate over all the lines in a file and perform an action on each one. In Python it's as simple as:for line in open("somefile.txt"): print lineHow about C++11. How hard can it be? This stackoverflow post gives us a starting point. We... | |
| | | | |
mikejsavage.co.uk
|
|
| | | | | ||
| | | | |
www.foonathan.net
|
|
| | | When C++11 introduced move semantics, it also added two important helper functions: std::move and std::forward. They are essential when you want to manually indicate that you no longer care about an object or need to propagate the value category in generic code. As such, Ive used them countless times in the past. However, they are functions. Plain, old, standard library functions. This is problematic for multiple reasons. | ||