std::forward
std::forward Prerequisites 1. What is std::forward? std::forward is a utility used to preserve the value category of an argument. That means it keeps whether an argument is: an lvalue ...
std::forward Prerequisites 1. What is std::forward? std::forward is a utility used to preserve the value category of an argument. That means it keeps whether an argument is: an lvalue ...
std::bind and std::reference_wrapper Prerequisites 1. What is a ‘std::bind’? std::bind is a utility that allows you to bind arguments to a function and create a new callable object. #includ...
std::function Prerequisites 1. What is a ‘std::function’? std::function is a general-purpose function wrapper that can store and invoke: Function pointers Lambda expressions Functors...
Function Pointers Prerequisites 1. What is a Function Pointer? A function pointer is a variable that stores the address of a function. Just like pointers to variables, but pointing to functi...
std::pair and std::tuple Prerequisites 1. std::pair std::pair is a simple container that holds exactly two values. std::pair<T1, T2> Useful for grouping two related values together....
std::unordered_map Prerequisites 1. What is std::unordered_map? std::unordered_map is an associative container that stores elements in key-value pairs, just like std::map. std::unordered_ma...
std::map Prerequisites 1. What is std::map? std::map is an associative container that stores elements in key-value pairs. std::map<Key, Value> Keys are unique (no duplicates allo...
Move Constructor & Move Assignment in C++ Prerequisites 1. Why Move Semantics Exist Copying objects can be expensive: Move semantics allows transferring ownership instead of copying ...
Operator Overloading in C++ Prerequisites 1. What is Operator Overloading Operator overloading allows you to define custom behavior for operators (+, -, *, ==, etc.) on user-defined types...
Function Overloading vs Overriding in C++ Prerequisites 1. What are Overloading and Overriding C++ supports two important polymorphism concepts: Overloading → Same function name, differe...