/explore
|
You are here |
sdowney.org | ||
| | | | |
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. |
|
| | | | | ||
| | | | |
www.kuniga.me
NP-Incompleteness: |
|
| | | | | ||
| | | | |
akrzemi1.wordpress.com
What is the difference between a concept and a type trait? Note that you can create a type trait using a requires-expression: You can also constrain a template with a type trait using a requires-clause: There are differences though. Some are in the language, some in the tools, and one is human communication. Concepts for... |
|
| | | | | ||
| | | | |
healeycodes.com
Writing an interpreter from scratch. |
|
| | | |||