Different ways to write a filter function
C++
A nice collection of techniques to filter elements in a range satisfying a predicate. The complete article can be found on Bartlomiej Filipek’s blog.
Jan 8, 2026
Hi there! I’m Quasar. I am a software engineer turned quantitative analyst.
This blog is a no-fluff collection of C++ code snippets, tips, puzzles and C++ projects. Here, I have also documented my deep-dives on concurrency, performance and computer architecture topics.