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 […]
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 […]
The algorithms library of C++ can sometimes be a little inconvenient since most of them requires a begin and an end iterator to operate (1). Utilizing […]
Scope Resolution Operator (::)Ternary or Conditional Operator (?:)Member Access or Dot operator (.)Pointer-to-member Operator (.*) Object size Operator (sizeof)Object type Operator(typeid) could not be overloaded in […]