All Posts

  • When to return by value

    Learn about the proper scenarios for using move and forward in C++ functions to return values efficiently. Avoid over-optimization and trust the compilers optimizations.
  • When to use move and perfect forwarding

    Understanding when to use std::move and std::forward in C++ is crucial for efficient programming. The rule of thumb is to use std::move for temporary values (rvalue references) and std::forward for universal references.
  • R-value reference, std::move and perfect forwarding

    In this beginner-friendly blog post, we explore fundamental concepts in C++ programming: R-value references, std::move, and std::forward. These concepts might sound complex, but they are crucial for writing efficient and high-performance C++ code.