In this video I explain what C++ command line arguments are and how you can easily process them either manually or using a library such as Abseil Flags.
In this video I explain what string_view is and why you should use it.
I explain what atomic variables (std::atomic) and how to use them in modern C++. I describe methods of the atomic template provided by STL in details. In particular: load, store, exchange, compare_exchange_strong, compare_exchange_weak.
I explain how to use Google Benchmark library to measure the runtime and benchmark your C++ code.
I provide a minimalistic starter template Git repo to start your C++ projects. It has the following features:
I explain what a mutex is and how to use it in modern C++. Also, I explain what a conditional variable in C++ is and how to use it.
How do we represent graphs in C++?
I will explain three methods of representing graphs in C++ using Standard Template Library (STL)'s data structures:
1. Direct translation of the graph definition (Set of vertices, Set of Edges): 5:39
2. Adjacency list: 10:27
3. Adjacency matrix: 14:27
Comparison of all methods: 17:01
In this video you will learn about: Tutorial To Learn C++ Multithreading Under 20 Minutes
A clear explanation of Bellman-Ford single source shortest path algorithm with example and C++ implementation.
In this video I will go over how you can set up VSC (Visual Studio Code) to debug your C++ programs.
In this video we analyze the runtime complexity of inserting N items inside an empty std::set.
Appending to a vector means adding one or more elements at the back of the vector. The C++ vector has member functions. The member functions that can be used for appending are: push_back(), insert() and emplace(). The official function to be used to append is push_back(). The use of these three member functions to append to a C++ vector is explained in this article.
A tutorial for using Bazel build system and Google Test for building and testing C++ files in Visual studio code.
The title of this article is actually “Vector clear() Member Function vs Vector clear() Member Function, in C++". Here is a comparison of the two member functions. It deals with when to use which, how to use which and under what conditions is used.