C++11 : make_tuple Tutorial & Example
In this article we will discuss what is std::make_tuple and why do we need it.
C++11 : make_tuple Tutorial & Example Read More »
In this article we will discuss what is std::make_tuple and why do we need it.
C++11 : make_tuple Tutorial & Example Read More »
In this article we will discuss what is std::tuple and how to use it.
C++11 : std::tuple Tutorial & Examples Read More »
In this article, we will look into a Smart Pointer unique_ptr in C++. It provides an easier way of memory management. Smart pointers are an integral part of modern C++ as they help prevent memory leaks and ensure that memory is managed automatically. What is a unique_ptr? A unique_ptr is a type of smart pointer
What is unique_ptr in C++? Read More »
In this example we will discuss c++11 std::packaged_task feature and its uses.
C++11 Multithreading – Part 10: packaged_task Example and Tutorial Read More »
In this article, we will discuss how to capture member variables from the outer scope. Wrong way to capture member variable in Lambda — Compile Error Suppose we have a class OddCounter to keep track of the odd numbers read by the object. Inside its member function, we are creating a lambda function and passing
How to Capture Member Variables in Lambda function in C++? Read More »
Lambda Functions were introduced in C++11, and it allows us to write Inline, Anonymous Functions. Lambda Functions are also called Lambda Expressions. These Lambda expressions/functions are particularly useful when you need to pass a small function as an argument to another function as callbacks, such as a sorting algorithm or a thread constructor. In this
C++11 Lambda: Capture Variables by Reference or Value Read More »
In this article we will discuss how to execute tasks asynchronously with std::async in C++11.
C++11 Multithreading – Part 9: std::async Tutorial & Example Read More »
In this article we will compare std::map and std::unordered_map and will also discuss when to choose one over another.
map vs unordered_map | When to choose one over another ? Read More »
Introduced in C++11, variadic templates are a powerful feature that allows programmers to write functions and classes that can take any number of arguments, of any type. This has significant implications for the flexibility and reusability of code. What are Variadic Templates in Modern C++ A variadic template is a template that can take an
Variadic Templates in Modern C++ Read More »
In this article we will discuss how to put a c++11 thread to sleep.
How to put a thread to sleep in c++11 ? | sleep_for | sleep_until Read More »