The preprocessor is the first stage of the compilation process in C++ that takes place ahead of the actual code compilation. It handles code that is […]
Initially, the preprocessor conducts source code preprocessing, handling directives and creating a temporary file. Subsequently, the compiler undertakes the translation of the preprocessed code into object […]
The function template async runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a […]
Double checked locking pattern was used in sigleton initialization in multi-threaded environments prior to C++11. C++11 removes the need for manual locking. It guarantees concurrent execution […]
Signed integers can be used for positive, negative and zero, on the other hand, unsigned integers represents only non-negative numbers.A signed int uses the most significant […]
The [[maybe_unused]] attribute is created for indicating in code that certain logic might not be used. This is often linked to preprocessor conditions where this might […]
Dependency Injections and complicated OOP patterns may result into conflicts of lifetime/ownership relationships in a spaghetti code. Enclosing the ownership of an object in a smart […]