tempted.devLambda Expressionthe lambda expression was first introduced to the programming world after the function pointer as we discussed previously. the function pointer refers to a pointer that holds the address of the function to be used as an argument to another function, ...Jan 31, 2023·2 min read
tempted.devSmooth intro to Smart Pointershave you ever wondered what's going on inside the man who created the pointer? though it is a vivid topic and needs more to talk about briefly what you see in everyday life is what so-called row pointers. row pointers are mysterious and hard to fall ...Jan 7, 2023·2 min read
tempted.devRecap on the modern C++ talkswe first talked about the template and how the type deduction plays a critical role in the usage of other declarations like auto. In the three cases where the template type deduction is used, paramtype is a reference or pointer. but not universal ...Jan 6, 2023·3 min read
tempted.devUse constexpr whenever possible.If there were an award for the most confusing new word in C++11, constexpr would probably win it. When applied to objects, it’s essentially a beefed-up form of const, but when applied to functions, it has a quite different meaning. Cutting through th...Jan 5, 2023·4 min read
tempted.devtypedefs best alternativehave you ever used a container from STL in C++? LOL, I am kidding reading this article is transitive relation to your knowledge. the syntax of calling one container let's say a vector with pair of strings is a nightmare-even calling this line of code...Jan 4, 2023·3 min read