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 […]
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 […]
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 […]
C++17 introduces [[nodiscard]] attribute to let the compiler deduce that the return value of a function or method must be handled by a properly assigned value. […]
std::promise and std::future work as asynchronous handshake contract on an object. Whenever the acquired object value is obtained by promise, it sets the value and passes […]
Template deduction guides are patterns associated with a template class that tell the compiler how to translate a set of parameters (and their types) into template […]
C++17 introduces a concept called std::optional. The class template std::optional manages optional contained value, a value that may or may not be present. It is commonly […]
This website uses cookies to improve your experience. By using this website you agree to our Data Privacy Statement