Posts tagged C++

Demystifying Lakos Rule via Visualization and How It Could Relate to Constexpr

If you have been interested in C++ standard committee works, you have probably come contact with Lakos rule (named after John Lakos). It is a C++ function API design principle related to noexcept, which is especially relevant in C++ standard library. With language support for contracts on its way hopefully in C++26, the Lakos rule has proven its relevance once again. For more info on contracts and Lakos rule see papers P2831 and P2861 .

Read more ...


DSL function objects (C++)

In this blog post I’m going to describe metaprogramming technique that arose when I was working on my WIP library. I have not seen it before so I coined the term DSL (Domain Spesific Language) function object.

Read more ...