Tag Archive for: Generic Programming

Scientific MetaProgramming In Modern C++

Metaprogramming Template metaprogramming (TMP) is a metaprogramming technique in which templates are used by a compiler to generate temporary source code. (Wikipedia) Scientific Programming Meta programming is becoming more popular with the new features added to C++14/17 (trait library). Many physics libraries use this technique where efficiency is especially important or crucial. A good reference to learn the basics […]

Example of STL Numeric Algorithm

We show by a simple usage of the numeric algorithm “accumulate” how STL can make code cleaner, short and can save you time and write better code. Fewer lines of code means less bugs, 90% of the time, simpler code runs faster and easier to maintain.