Home
Sandor Dargo's Blog
Cancel

The big STL Algorithms tutorial: modifying sequence operations - how to get distinct elements

In this next part of the big STL algorithm tutorial, we will discover the 2 modifying sequence algorithms that will help you get unique elements of a container: unique unique_copy Let’s ge...

Let me introduce Daily Cpp Interview

I’ve got something to share. Something I’ve been building for the last few weeks has gone live today: Daily Cpp Interview. What is Daily Cpp Interview about? It’s extremely simple. You subscribe...

Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library by Scott Meyers

I have learned, written and spoken a lot about the Standard Template Library during the course of the last years. My sources have been mostly websites such as cppreference.com, cplusplus.com, blogs...

Covariant return types

Even after spending years in software development, you will find expressions that you simply don’t understand. Even if you are considered somewhat a senior. Those terms might express an advanced co...

The big STL Algorithms tutorial: modifying sequence operations - rotate functions

In this next part of the big STL algorithm tutorial, we will continue with 4 algorithms that either help us to rotate elements around a given element in the input range or they just shift elements ...

See You At The Top by Zig Ziglar

If you have spent some time reading modern self-improvement books, it’s almost for sure that you came across the name Zig Ziglar and his book called See You At The Top. Ziglar after dropping out o...

Virtual Trip Report: C++ On Sea 2020

Last week, I “went” to the C++ On Sea 2020, which was my second C++ conference, after CPPP 2019. I put went between quotes because as you might have guessed due to the Coronavirus, the organizers h...

Why should we always catch exceptions by reference?

Do you use exceptions in your code? Do you always catch the most generic one or do you write multiple catch blocks? Do you rethrow them or just swallow the exceptions right after they occur? Do you...

The big STL Algorithms tutorial: modifying sequence operations - turn things around

In this next part of the big STL algorithm tutorial, we will continue with two algorithms that help us to reverse the order of elements in a range: reverse reverse_copy Let’s get started! ...

Code: The Hidden Language of Computer Hardware and Software by Charles Petzold

If you have been reading my book reviews, you know that I like history. Recently I wrote about Sapiens and I quoted Churchill - you know the guy who pretty much led the fight against Nazis - saying...