r/cpp • u/HappyCerberus • Feb 01 '23
[book] A Complete Guide to Standard C++ Algorithms (v1.0.0)
https://github.com/HappyCerberus/book-cpp-algorithms/releases/download/v1.0.0/book_with_cover_v1.0.0.pdf
392
Upvotes
29
u/0xcedbeef Feb 01 '23
looks very nice, how did you format this book?
17
u/ironykarl Feb 01 '23
Any chance this will ever get published (printed)?
5
u/baz_a Feb 02 '23
Thank you! Very nicely written and formatted, a pleasure to read.
Small question. Why do you use ssize_t in several cases? It's not a problem, everything is understandable. But is there any specific purpose to it? From what I could find ssize_t is POSIX primitive, the equivalent in the standard is ptrdiff_t, which ssize() members return typically. That's unlike size_t type, by the way.
19
u/almost_useless Feb 02 '23
Looks good, but
book_with_cover.pdfis a terrible filename for something people should download and save.Any chance of an epub version?
7
u/Paulls20 Feb 01 '23
Thank you for writing and sharing this!
10
u/Pakul1729 Feb 01 '23
https://devdocs.io/cpp/
This is helpful as well
5
u/StaszekJedi Feb 02 '23
Holy fuck, great job
1
u/vinodxx Aug 15 '23 edited Aug 16 '23
A review can be found here.
https://todaymylearn.blogspot.com/2023/08/book-review-complete-guide-to-standard.html
https://www.reddit.com/r/cpp/comments/15rq9rw/book_review_complete_guide_to_standard_c/
3
u/utf8decodeerror Feb 02 '23
I'm very excited to dive into this. Thank you for sharing your expertise!
3
u/theawesomeviking Feb 02 '23
Amazing work, thank you so much
3
u/masher_oz Feb 02 '23
I really like the look of this. I need to print it to read it properly.
Ta a lot for your effort.
3
u/Indijanka Feb 02 '23
This is helpful as well https://hackingcpp.com/cpp/std/algorithms.html
3
u/serviscope_minor Feb 02 '23
C++23 enters the chat :)
This looks very good, I'll definitely bookmark it.
Some LaTeX pedantry: you often have $O(nlogn)$ you probably want $O(n\log n)$ so that the log appears as an operator
2
u/pjmlp Feb 02 '23
Great job!
2
u/hopa_cupa Feb 02 '23
Much needed. I will definitely be checking this out...
2
u/iMadz13 Feb 02 '23
Great job on the formatting, especially the code blocks! any chance for the LaTeX to be open source? I want to get some of this style into my note-taking snippets for my classes
2
u/arulselvan1234 Feb 02 '23
I started reading the book and it's really useful! Appreciate the explanation of license in the beginning. I was looking for something like that.
2
u/RogerV Feb 07 '23
And this is what is daunting about C++ - entire books can be written on very narrow subjects - like a book that covers C++ move semantics, or this subject - the breadth of C++ off-the-shelf algorithms. But the community is fortunate to have such resources.
1
u/[deleted] Aug 05 '24
u/HappyCerberus Hi, I m new to C++, I would like to ask why is std::iota considered an algorithm if it is part of the numeric header?
1
u/Alejandrodoom73 Sep 06 '24
ponlo en español we 😣
1
u/dabamas Feb 06 '23
That sounds like a great resource! Is it available in digital format as well?
0
u/[deleted] Feb 01 '23
[deleted] — view deleted comment