I know shared_ptr
, unique_ptr
, weak_ptr
are guaranteed to be empty after used as RVR argument in the constructor of the same type, but I wonder does standard specifies this for some other std::
types beside the ones I mentioned.
Please note that I know that elements after move are left in valid but unspecified state, I am here interested for which types state is specified.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…