What does the term 'equivalent' mean in C++ standard?

Viewed 159

According to the draft of the C++ 11 standard, page 421, Table 23 — CopyAssignable, it says that post-condition of an expression t = v of copyassignable type is

t is equivalent to v, the value of v is unchanged

But I'm not sure what the term 'equivalent' means here. Is it mean t == v? Or something like all bytes are equivalent 'deeply' in sense of 'deepcopy'?

1 Answers

As far as I can tell, there is no separate definition of the term "equivalent" that would apply in the standard. It may be interpreted as plain English. Here are a few definitions from dictionaries:

  • corresponding or virtually identical especially in effect or function
  • equal to or having the same effect as something
  • something that is the same amount, price, size, etc. as something else or has the same purpose as something else

Another interpretation is that your quote is the definition for equivalent in this context i.e. the meaning of equality for the type in question is defined by the assignment operator of that type.

Related