Monthly Archives: January 2019




code
Syntax [crayon-5d0b4187d3943057640270/]   Tuples and data fetching Tuples are suggested for returning multiple values from a function. They are in a strong relation with std::tie, which is used for retrieving the values. The only problem is that we have to have all those variables previously declared. [crayon-5d0b4187d394d911943538/] But what if […]

Language feature: Structured binding



code
Syntax [crayon-5d0b4187d3e9c228171268/] std::quoted was added in C++14 and it is used to take care of escaping quotes and backslashes in output streams, and unescaping them in input streams. This is handy for example if we want to use it in an SQL statement, in both ways (either add the escaping, […]

std::quoted and the “friendly” delimiters