Metaprogramming is another great feature of modern C++ that allows programs to redesign themselves during compilation or run time. In C++17, another new feature of metaprogramming is introduced, logical operation metafunctions. These are variadic metafunctions that are conjunction, disjunction, and negation which can be used for metaprogramming features of applications. In this post, we explain…
Metaprogramming is another great feature of modern C++ that allows programs to redesign themselves during compilation or run time. In C++17, another new feature of metaprogramming is introduced, logical operation metafunctions. These are variadic metafunctions that are…
Metaprogramming is another great feature of modern C++ that allows programs to redesign themselves during compilation or run time. In C++17, another new feature of metaprogramming is introduced, logical operation metafunctions. These are variadic metafunctions that are…
What Is Multiset (std::multiset) In Modern C++?
March 1, 2024
In C++, containers are powerful data storage arrays and they are very useful to iterate and search. A container is a holder object that stores data elements (a collection of data objects) such as std::array, std::vector, std::map. There is another useful container std::multiset, in this post, we explain what std::multiset is. Before that let’s remind ourselves what containers are in C++…
What Is Set (std::set) In Modern C++?
February 22, 2024
Modern C++ has a lot of options to add and modify data members with its amazing data holders, arrays, structs, pointers, and containers. Containers are powerful data storage arrays in C++ and they are very useful to iterate and search. A container is a holder object that…
What Is Multimap (std::multimap) In Modern C++?
February 8, 2024
Modern C++is very powerful with many great features to help you write programs more easily with safer template class objects that have faster algorithms and methods. In C++, Containersare the powerful data storage arrays in modern C++ and they are very useful for…
What Is List (std::list) In Modern C++?
February 6, 2024
Containersare powerful data storage arrays in modern C++ and they are very useful to iterate and search data with their amazing methods and properties. A container is a holder object that stores data elements (a collection of data objects). std::vector, std::array, std::set are these kinds of containers. There is another useful container, in this post, we explain what std::list is. Before…
Random numbers are widely used in today’s modern applications. In C we use rand(), srand() and in C++ it is std::rand(), std::srand(). Since C++11, we can use the Mersenne Twister random generators; mt19937 (std::mt19937) for 32-bit applications and mt19937_64…
What Is The mt19937 Random Generator In Modern C++?
January 30, 2024
Random numbers are one of the most important parts of today’s modern programming technologies. They are used in mathematics, physics, in many engineering fields, and in programming such as generating random data for testing, random maps in levels, random trees on a…
How To Use void_t Alias Template in C++ 17?
January 25, 2024
In C++ 17, there is a very useful alias template for metaprogramming that can be used to simplify use of SFINAE. The void_tis a meta-function that is used to map any types ( or types) to typevoid. In this post, we explain what is void_t, how you can use it in different examples.
What is alias template void_t in C++ 17?
The void_t is an alias template which is introduced with…