Yes, the practicality of dropping in use of a well-optimized library is one of the ways that C++ code often beats C.
Another is the ability to pass a lambda to library function, and compiled directly into it, where C would need to pass a pointer-to-function to be called indirectly.
Both contribute to the showcase sorting example, which is used frequently because it had proven to be understandable, not because it is unique.
Another is the ability to pass a lambda to library function, and compiled directly into it, where C would need to pass a pointer-to-function to be called indirectly.
Both contribute to the showcase sorting example, which is used frequently because it had proven to be understandable, not because it is unique.