C++C++17Code SnippetLearn C++Templates

Learn To Use std::tuple In A C++ Compiler For Windows

What is a tuple, or std::tuple? How can I use a tuple in a C++ compiler? Can I store different types of variables in tuple template? What does std::tuple mean to a C++ compiler? The tuple ( std::tuple) is a class templatea fixed-size collection of different types of values like floats, integers, texts, etc. In another term tuple stores the different types of the elements, it also…
Read more
C++C++11C++14C++17Code SnippetIntroduction to C++Language FeatureLearn C++

Learn To Use Powerful Modern Linked Lists In C++

In this post, you’ll get answers to these questions: Can I use linked lists with unique_ptr in a modern way?How can I use linked list with the class, struct combinations?How can I use smart pointers with linked lists? By learning how to use Powerful Modern Linked Lists in c++, it will help you to build C++ applications with the use of C++ Software. What does the smart pointer unique_ptr…
Read more
C++Code SnippetGeneric ProgrammingLanguage FeatureLearn C++

Quickly Learn To Check OS Platform Compiled In C++ Builder With Predefined Macros

Sometimes it is needed to understand compilation platform during compile or acting and designing UI elements in accordance with the platform. In this post we would like to give some examples to check some options in application codes. The C++ compiler predefines certain global identifiers, known as manifest constants. Most global identifiers begin and end with __ (two underscores) in C++.
Read more
C++C++11C++14C++17Code SnippetLearn C++

Quickly Learn To Sort Vectors With Parallel STL Algorithm In C++ On Windows

In C++, STL Standard Template Library has many algorithms for some operations like searching, counting, and manipulation of ranges and their elements. C++17 has a new feature that you can sort vectors with Parallel STL Algorithm. In C++ Builder, Vectors can be used and sorted by Parallel STL Algorithm as below. #include <vcl.h> #include <stdio.h> #include <vector> #include…
Read more