|
You are here |
eyakubovich.github.io | ||
| | | | |
sdowney.org
|
|
| | | | | A Possible Technique constexpr bool g(int lhs, int rhs) { auto& op = partial_eq; return op.ne(lhs, rhs); } Compiler Explorer with Supporting Code A trait is defined as a template var... | |
| | | | |
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. | |
| | | | |
mpark.github.io
|
|
| | | | | A visitation mechanism for `std::variant`. | |
| | | | |
www.cppstories.com
|
|
| | | The C++ Standard Library: A Tutorial and Reference (2nd Edition) by Nicolai M. Josuttis We are still waiting for some more books about new C++ standard. Fortunately for us, some authors managed to write books even before C++11 is well "domesticated". One of such examples is the book mentioned in the title of this post. | ||