|
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.fluentcpp.com
|
|
| | | | | Do you know how to partially specialize all the kinds of templates in C++? Check out this post for how to do it while keeping your code clear. | |
| | | | |
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. | |
| | | | |
theincredibleholk.org
|
|
| | | The last week or two has been exciting in Rust async land. We're making great progress on one of the open questions around async functions in traits, and I thin... | ||