C++Generic ProgrammingIntroduction to C++Language FeatureLearn C++

5 Simple Ways To Optimize C++ Arithmetic Operations

What is optimization in arithmetic operations? How can I optimize my equations or functions? Which arithmetic operation is faster than another one? Where should I optimize? Optimization is one of the important part of programming but we should note that it is not as important in C++ in most cases for modern CPUs and GPUs today. Do not spend too much time to optimize if it is not needed. In this…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

Learn to Use Function Templates in C++

A Template is a simple and a very powerful statement in C++. A Template Function may have multiple template parameter types, and the function can still use regular non-templated types. In a previous post, about Function Overloading, we had two add() functions working with integer and float numbers, in that example we can say add() function is overloaded with int and float parameter types, and…
Read more