I don't think thats correct.. C++ has UB because of backwards compatibility, which has origins to design choices of C in the 70s. Its not like it is optimized for performance above all else, it had immediate needs to be close to metal, and that is the best they could do back then, there was not some "strongly typed" versus "performance" debate happening at the time.
The creator of C++ would love for there to be safer abstractions, but has the baggage of the past to carry.
The creator of C++ would love for there to be safer abstractions, but has the baggage of the past to carry.