/explore
|
You are here |
cukic.co | ||
| | | | |
ventspace.wordpress.com
Something that comes up occasionally for me is that I'd like to write a template function that accepts a lambda, and then peels back the layers of the lambda to get type information about it. For example, I'd like to have a templated type parameter for the return value of that lambda to be able... |
|
| | | | | ||
| | | | |
www.foonathan.net
The size of std::array is known at compile-time given the type. Yet it only provides a regular .size() member function: template struct array { constexpr std::size_t size() const { return N; } }; This is annoying if you're writing generic code that expects some sort of compile-time sized range. |
|
| | | | | ||
| | | | |
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. |
|
| | | | | ||
| | | | |
bannalia.blogspot.com
std::unordered_map is a highly configurable class template with five parameters: template< class Key, class Value, class Hash ... |
|
| | | |||