4 ms·
What you say about restrict is hard to consider because every C++ compiler supports restrict. Also, I frequently see those types of algorithms that benefit C++
by TwoBit 12y ago
What you say about restrict is hard to consider because every C++ compiler supports restrict.
Also, I frequently see those types of algorithms that benefit C++. It's not just an STL thing.
- sharpneli 12y agoYeah it's true that restrict is well supported, mostly because all C++ compilers are also C compilers. Maybe the biggest reason why C++ is slower in practice is because the programmers tend to feel that using features unique to C++ almost mandatory. Even though technically the pure C program also compiles fine in C++.