DEV Community

Cover image for I released my first book: How to use const in C++
Sandor Dargo
Sandor Dargo

Posted on • Originally published at sandordargo.com

I released my first book: How to use const in C++

I've got some great news to share with you. Based on my series on when to use const in C++, I wrote a book on the same topic and I released it on LeanPub!

Book cover

In the book, I discuss the idea of constness which is so important that in certain languages entities are const, in other words, immutable by default. If you want to become a seasoned C++ developer, you must understand how you can use const correctly. In this book, you'll learn when and how to use it in the different contexts it might appear:

  • const functions
  • const local variables
  • const member variables
  • const return types
  • const parameters

Compared to the series of articles, the book contains extra code examples, more explanations and also the differences between const west and east const - without starting a holy war on different coding styles.

If you are interested, check it out How to use const in C++ on LeanPub

Top comments (4)

Collapse
 
alisamifarooq profile image
Ali Sami Farooq

Great Congratulation on you Success... i will surely check your book ~ Ali Sami Farooq

Collapse
 
sandordargo profile image
Sandor Dargo

Thanks for your kind words!

Collapse
 
pgradot profile image
Pierre Gradot

Great! I'm gonna try to buy it at work, it would be useful for the whole team :)

Collapse
 
sandordargo profile image
Sandor Dargo

Thanks, I'd more than happy! :)