Agenda: Introduction to std::async. Accessing the shared state of the future. Get a value from parent to child- Full filling promise. set_exception – failed to
Tag: C++
Multithreading in C++
Introduction : The std::thread class was introduced in C++ 11 to facilitate multithreading. POSIX (Pthread thread ) library in C or Win32 threads (CreateThread AfxBeginThread)
Asynchronous packaged_task in C++ 11
Defination of packaged_task : The class template packaged_task wraps any Callable target, which can be invoked later. The callable objects can be function, lambda expression,
Keyword auto in C++ ( type inference or type deduction ) | Programming in C++
Keyword auto in C++ is explained in few simple steps: The keyword auto in C++ (Type Inference) refers to automatic deduction of the data type.
Day2: FAQ Interview questions – Coding
This is 2nd Day, where I have covered few major areas to cover most of the FAQ questions during the coding interview.Feel free to ask
Day1: FAQ Interview questions – Coding
This complete series of interviewing questions are divided into days for easy and better understanding. Follow the Day pattern and practice coding as much you
1st simple step to understand and use tuple in C++
Tuple in C++ | Programming in C++: Tuples are objects that pack elements of -heterogeneous types together in a single object. The object of Tuple
You are just a step away from learning anagrams of string Using C++
An anagram of a string is a string that contains the same characters as of another string, only the order of characters can be changed. For example, “nectarpost” and “postnectar”
How to find duplicate characters in a string in simple steps?
Find duplicate characters in a string The simplest way of finding duplicate characters can be achieved in below-mentioned steps: Step 1. Iterate through the string
How std::make_tuple makes the task simple to construct tuple of appropriate type?
make_tuple | Programming in C++ This is the continuation of my previous post on std::tuple. Please refer std::tuple before reading this post. Ignore if already