mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
commit
2ab0ecbfeb
|
@ -3271,7 +3271,7 @@ Also, copying may lead to slicing.
|
||||||
// ...
|
// ...
|
||||||
};
|
};
|
||||||
|
|
||||||
The problem of whether `Handle` is responsible for the destruction of its `Shape` is the same as for <a ref="#Rc-dtor-ptr">the pointer case</a>:
|
The problem of whether `Handle` is responsible for the destruction of its `Shape` is the same as for [the pointer case](#Rc-dtor-ptr):
|
||||||
If the `Handle` owns the object referred to by `s` it must have a destructor.
|
If the `Handle` owns the object referred to by `s` it must have a destructor.
|
||||||
|
|
||||||
**Example**:
|
**Example**:
|
||||||
|
@ -11847,7 +11847,7 @@ If the class definition and the constructor body are in separate files, the long
|
||||||
|
|
||||||
[[Cline99]](#Cline99) §22.03-11, [[Dewhurst03]](Dewhurst03) §52-53, [[Koenig97]](#Koenig97) §4, [[Lakos96]](#Lakos96) §10.3.5, [[Meyers97]](#Meyers97) §13, [[Murray93]](#Murray93) §2.1.3, [[Sutter00]](#Sutter00) §47
|
[[Cline99]](#Cline99) §22.03-11, [[Dewhurst03]](Dewhurst03) §52-53, [[Koenig97]](#Koenig97) §4, [[Lakos96]](#Lakos96) §10.3.5, [[Meyers97]](#Meyers97) §13, [[Murray93]](#Murray93) §2.1.3, [[Sutter00]](#Sutter00) §47
|
||||||
|
|
||||||
### <a name="???">Use of `=`, `{}`, and `()` as initializers</a>
|
### <a name="???"></a> Use of `=`, `{}`, and `()` as initializers
|
||||||
|
|
||||||
???
|
???
|
||||||
|
|
||||||
|
@ -12192,7 +12192,7 @@ Resource management rule summary:
|
||||||
int sz;
|
int sz;
|
||||||
};
|
};
|
||||||
|
|
||||||
This class is a resource handle. It manages the lifetime of the `T`s. To do so, `Vector` must define or delete <a ref="???">the set of special operations</a> (constructors, a destructor, etc.).
|
This class is a resource handle. It manages the lifetime of the `T`s. To do so, `Vector` must define or delete [the set of special operations](???) (constructors, a destructor, etc.).
|
||||||
|
|
||||||
**Example**:
|
**Example**:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user