C++14 introduced an improvement to the way we can declare anonymous functions (a.k.a. lambda expressions). For example, before C++14, if you wanted to pass an anonymous function to the sort algorithm, you had to do something like this: Since C++14, you can let the compiler to deduce the type of the variables passed as parameters… Continue reading C++: “auto” on anonymous functions
A primitive type is a data type where the values that it can represent have a very simple nature (a number, a character or a truth-value); the primitive types are the most basic building blocks for any programming language and are the base for more complex data types. These are the primitive types available in… Continue reading C++: Primitive types
The function implemented below, can be used to replace something like: to And performs far better. Obviously, my function simply performs its task and does not need to do all parsing and extra tasks that the printf family does.