|
You are here |
arne-mertz.de | ||
| | | | |
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. | |
| | | | |
thasso.xyz
|
|
| | | | | My personal blog about things I find interesting. Hit me up! | |
| | | | |
www.fluentcpp.com
|
|
| | | | | std::exchange is a underused function of the C++ standard library. Here is how it can make your code expressive. | |
| | | | |
www.shuttle.dev
|
|
| | | All about Rust traits, generics, trait bounds and implementing advanced trait bounds | ||