“as if” in language standards
问题 What is the exact meaning of the phrase "as if" in the standard and how does it work when a user can modify individual parts of the behavior. The question is in regards to the C++ standard when talking about the nothrow version of operator new . 18.4.1.1/7 reads (my emphasis): This nothrow version of operator new returns a pointer obtained as if acquired from the ordinary version. My understanding is that "as if" does not require a specific implementation as long as the behavior is