Author Archives: רות האפרתי Ruth Haephrati

Unknown's avatar

About רות האפרתי Ruth Haephrati

Founder of Secured Globe, Inc. Angel investor and Entrepreneur. https://www.securedglobe.com. Author of the book https://manning.com/books/learning-c-plus-plus

Feel the change: Meet the new C++23 insert_range()

C++23 brought a new and useful addition to the language: insert_range(). This new member function provides a more efficient way to insert a range of elements into a vector. Until C++23, the only way to insert a range of elements … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

The Simpson Show and C++ 20 concepts

Read more about that in Chapter 12 of our book.The Simpsons is one of the oldest and most beloved cartoon TV shows since 1987, and, unless you’ve been living in a cave, you probably know it. In the opening credits … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 1 Comment

Handling Exceptions

An important part of the book Learning C++  exception handling, and especially exception handling in C++ 20. Here is an example: #include <strexcept> #include <iostream> class MyException : public std::runtime_error { public: MyException(const char* message) : std::runtime_error(message) {} /* a … Continue reading

Posted in Code Snippets | Leave a comment