Cpp

  • 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.
  • Do you really know constexpr?

    constexpr is a keyword that was introduced in C++ 11 and revised in C++14. It is extremely versatile and it is a good practice to incorporate it in a lot of situations.
  • Benefit of using auto keyword in C++

    auto keyword is an integral part of modern C++. its a good practice to use auto in various coding scenarios and this blog will highlight some of the most important use cases where you should prefer using auto keyword.
  • Function Pointers

    In this blog, we delve into the intriguing world of function pointers in C++. Function pointers, which are pointers that hold the address of a function, offer a way to make your C++ programs more flexible and dynamic. We start from the basics, introducing the concept with simple examples, and then navigate through the syntax complexities using the handy tool typedef.