C++ features
Published:
User-defined literals
In my first ever blog post, I would like to share one of favourite c++ features, user-defined literals. We are well used to built-in literals. e.g.
59u //unsigned int
065l //long
8.276f //float
3E1l //long double
A compelling use case for user-defined literals is demostrated in this code snippet.
For more on user-defined literals, please read this post.