Folding expressions in C++
Posted in

Folding expressions in C++

Welcome to the next pikoTutorial ! What is a folding expression? Imagine that you have a vector of integers and you need to add some predefined values to it. The obvious choice seems to be just using push_back() function applied a couple of times: This works, but look how much…

Folding expressions in C++ Read More
Custom literals in C++
Posted in

Custom literals in C++

Welcome to the next pikoTutorial! What are C++ literals? Literals in C++ are constant values directly embedded into the code, such as numbers, characters and strings. They represent fundamental data, making the code more readable and expressive. C++ provides several built-in literals, like integer literals (42), floating-point literals (3.14), and…

Custom literals in C++ Read More
Enums vs enum class in C++
Posted in

Enums vs enum class in C++

Welcome to the next pikoTutorial! When dealing with enumerations in C++, developers have two primary options: traditional enum and enum class. Traditional enums vs enum classes At the first glance, the only difference appears to be in the class keyword: The real difference is however in how both of them…

Enums vs enum class in C++ Read More