Yeah, it's trivial to do that.
But since it's not in STL, everyone will use a bit different implementations for something this mundane and common.
I'd rather say, (mostly) everybody will use Boost.
But since it's not in STL, everyone will use a bit different implementations for something this mundane and common.
frankly, this is a very overstated problem. It's trivial to write a header with such functions (e.g. https://github.com/OSSIA/libossia/blob/master/OSSIA/ossia/de...). And it's already provided by Boost if you use it.