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

Definition [crayon-5d5b966e2cfd1001039147/] Fills the range [first, last) with sequentially increasing values, starting with value and repetitively evaluating ++value.   Syntax [crayon-5d5b966e2cfd9275452409/] 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-5d5b966e2cfde059259647/] So what do we have here? I’ve added a […]

std::iota and custom incrementable