User-defined literals -- Part II
In the previous post on user-defined literals, we have seen what user-defined literalsare for and how you define a cooked literal operator, i.e., where compiler that sees literal
12_kg
extracts value12
of typelong double
and calls your functionoperator"" _kg(12.L)
to transform the result.In this post we will explore other aspects of user-defined literals: raw literal operators, which allow you to inspect every character in the literal...
Add a Comment
Comments are closed.