To maintain the integrity of objects with different lifetimes, you must follow one rule when referencing objects: an object may not reference another object with a shorter lifetime.
要维护具有不同生存期的对象的完整性,在引用这些对象时必须遵守一条规则:一个对象可能不能引用另一个具有更短生存期(与自身比较)的对象。
To maintain the integrity of objects with different lifetimes, you must follow one rule when referencing objects: an object may not reference another object with a shorter lifetime.
要维护具有不同生存期的对象的完整性,在引用这些对象时必须遵守一条规则:一个对象可能不能引用另一个具有更短生存期(与自身比较)的对象。
应用推荐