Definition [crayon-5c6ab5513b313024623923/] Fills the range [first, last) with sequentially increasing values, starting with value and repetitively evaluating ++value.   Syntax [crayon-5c6ab5513b31d143567648/] But now let’s create a custom incrementable class. Iota is working with a T type, so we only need to overload the ++ operator. [crayon-5c6ab5513b323758844207/] So what do we have here? I’ve added a […]

std::iota and custom incrementable

Syntax [crayon-5c6ab5513b74c289372561/] 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

Angle brackets Two consecutive right angle brackets must be separated by whitespace: [crayon-5c6ab5513beb3876878672/] Binary literals [crayon-5c6ab5513bebc140518484/] Deprecated  attributes [crayon-5c6ab5513bec1950066692/] Single quotation mark as separator The literals 1.602’176’565 and 1.602176565 have the same value. Unrestricted unions In Standard C++ there are restrictions on what types of objects can be members of […]

Miscellaneous: Small changes