One of the primary advantages of utilising threads for concurrency is the ability to quickly and directly transfer data across them, so now that we’ve
Category: Technology
mutex in the thread explained in simple examples in detail
A mutex is a locked object that acts as a notification when critical code parts demand exclusive access. It prohibits other threads with the same
Complete guide on how to Pass Arguments to thread and How You Could Use Them With C++
This blog describes how to pass an argument to a thread and which arguments cannot be passed. The first thing we’ll look at is why
Initialization In Modern C++
INITIALIZATION IN MODERN C++ Content Covered Default initialization Copy initialization Aggregate initialization Case 1: Zero initialized for aggregateCase 2: Brace elision Direct initialization Case 1:
Aggregate Initialization in C++
An aggregate initialization is a collection of items gathered together. Aggregates of mixed types, such as structs and classes, are covered by this definition. An
Parse and TryParse in C#
The converted number is returned by the Parse function, whereas the TryParse method delivers a boolean value indicating if the conversion succeeded and the converted
Features and Bug fixes in Initialization : C++ 20
Designated Initialization: Now individual aggregate elements can be initialized using below syntax. Awesome!!! Isn’t it ??? Array deduction: Finally this bug related to array deduction
Bug fixes in Initialization : C++ 17
Copy elision: atomic is neither copyable nor movable, hence below line of code results in error till C++ 14, later it is fixed in C++
Bug fixes in Initialization : C++ 14
1. Aggregates can have default memory initializers (DMI). 2. auto keyword fix
Uniform Initialization ( List Initialization ): C++ 11
Topics Covered : Uniform Intializer list Direct list initialization Copy-list-initialization About std::initilizer_list Problem associated with std::initializer_list std::initializer_list for Aggregate