C++C++11C++14C++17C++20

What Is The Stack (std::stack) In Modern C++?

Modern C++ defines four container categories, and one of these is known as Container Adapters. There is a very useful container adapter implemented by the std::stack. In this post, we explain what std::stack is, and how can we add, delete, and print out them. Before that let’s remind ourselves what containers are in C++ programming and what are their types. What is a container in…
Read more
C++C++11C++14C++17C++20Learn C++Syntax

What is the conjunction (std::conjunction) metafunction in C++?

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