In Copy initialization an object is initialized by another object.. The following circumstances necessitate copy initialization: 1) When a named variable of non-reference type T
Category: C++
Default Initialization in C++
Default Initialization is the initialization performed when an object is constructed with no initializer. Default initialization occurs in three scenarios:1) when a variable with automatic,
The Most Effective and Easy Logging Technique in C++
the-best-approach-in-logging-in-cpp
Promise and future in C++
Content: Brief introduction of what is future and promise in C++. Sample code to implement promise and future in C++. Set an exception in promise
Use of shared_future in C++ 11
The shared_future object works similar to std::future except that it can be copied and thereby more than one std::future can share the ownership. The use
Detail understanding and usage of std::async in C++ 11
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
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,