C++C++17Code SnippetComponentsIteratorsLearn C++

What Are The Boost C++ Libraries?

C++ is a great programming language that has many useful libraries. One of the most useful libraries are packed in Boost C++ Libraries. which is a set of C++ libraries that contains 164 individual libraries (as of version 1.76) that significantly expand the C++ programming language using template metaprogramming. You can use boost libraries with the most of C++ IDE and compilers. In this post…
Read more
CC++C++11C++14C++17Introduction to C++IteratorsLearn C++

What is An Array in Programming C++?

Arrays are one of the important variable types when we are programming C++ apps. An array is a group of similar elements, data types, that are stored in a memory location. Array elements are defined by the data type and the variable then its size in brackets. If you are developing C++ apps with a professional C++ IDE, one of the most important parts of C programming is using data in memory…
Read more
C++C++11C++14C++17Iterators

Insert Iterators Adapters in C++

Let’s slightly modify the example from The Move Iterator Adapter in C++ post: #include <algorithm> #include <list> #include <string> #include <vector> /// @warning BUG! PLEASE, DON'T USE! auto deep_copy_to_list(const std::vector<std::string>& src) { std::list<std::string> dst; // constructs the empty list copy(cbegin(src), cend(src)…
Read more
C++C++11C++14C++17IteratorsLearn C++

Categories of Iterators in C++

Conceptually, iterators are consists of five categories: input iterator is intended to traverse sequences in the forward direction and provides the read access to the pointed sequence element;output iterator is intended to traverse sequences in the forward direction and provides the write access to the pointed sequence element;forward iterator is intended to traverse sequences in the forward…
Read more