Hacker News new | ask | show | jobs
by mgaunard 1264 days ago
Of course it exists in C++, and has done since before Rust even existed.

Syntax is usually `vector | map | collect`.

2 comments

> Of course it exists in C++, and has done since before Rust even existed.

Not in C++'s standard library until C++20.

Things don't need to be standardized in an ISO document to exist and be readily available.

I remember using it as early as 2008.

Wow, my C++ knowledge is even worse than I thought. I didn't know it had "pipelines".

https://en.cppreference.com/w/cpp/ranges

It's not "pipelines". It's just an overloaded bitwise-or operator.