|
You are here |
migocpp.wordpress.com | ||
| | | | |
akrzemi1.wordpress.com
|
|
| | | | | This post has been inspired by the readers' questions about using concepts to solve real problems. We will have a look at two such problems and see if, and how, concepts can help. Case Study 1 My concept has two functions: one produces a value, and the other one later consumes this value: How to... | |
| | | | |
mklimenko.github.io
|
|
| | | | | Every time I work with a C library, I miss the power and capability of the type system C++ provides. That's why I developed a simple C++17 header-only helper library to pack the multiple type-dependent C-style functions into single overload deduced at compile-time. No external libraries are required. Repo link: https://github.com/MKlimenko/plusifier. Currently, it's just the header and a compile-time test file, CMake integration coming soon. | |
| | | | |
www.cplusplus.com
|
|
| | | | | ||
| | | | |
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. | ||