C++C++11C++14C++17C++20Learn C++Syntax

What Is Multiset (std::multiset) In Modern C++?

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++…
Read more
C++C++17C++20IteratorsLearn C++

What Is forward_list (std::forward_list) In Modern C++?

The C++ programming language has a lot of options to add and modify data members with their 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 stores data elements (a collection of data objects). std::vector, std::array, std::set, std::list are these…
Read more
C++C++17C++20Introduction to C++Learn C++Syntax

What Is List (std::list) In Modern C++?

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…
Read more
C++C++17C++20Learn C++SyntaxTemplates

How To Use void_t Alias Template in C++ 17?

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…
Read more