|
You are here |
eyakubovich.github.io | ||
| | | | |
studiofreya.org
|
|
| | | | | [AI summary] A C++11 variadic template example demonstrating perfect forwarding to wrap constructor calls for a structure. | |
| | | | |
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. | |
| | | | |
mikejsavage.co.uk
|
|
| | | | | ||
| | | | |
verdagon.dev
|
|
| | | [AI summary] The author explains how concept functions in Vale 0.2 Beta allow passing functions as generic parameters to specify constraints on types, comparing this approach to C++ requires clauses, Rust traits, and historical C function pointers. | ||