From b0091caa5f33ec0abd752a26b636f6b32c6fd0db Mon Sep 17 00:00:00 2001 From: Infko Date: Wed, 27 Mar 2019 19:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8B=98=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5eb162b..c5cbbc9 100644 --- a/README.md +++ b/README.md @@ -973,16 +973,16 @@ int main() #### 定位 new -定位 new(placement new)允许我们向 new 传递额外的参数。 +定位 new(placement new)允许我们向 new 传递额外的地址参数,从而在预先指定的内存区域创建对象。 ```cpp -new (palce_address) type -new (palce_address) type (initializers) -new (palce_address) type [size] -new (palce_address) type [size] { braced initializer list } +new (place_address) type +new (place_address) type (initializers) +new (place_address) type [size] +new (place_address) type [size] { braced initializer list } ``` -* `palce_address` 是个指针 +* `place_address` 是个指针 * `initializers` 提供一个(可能为空的)以逗号分隔的初始值列表 ### delete this 合法吗? @@ -3453,4 +3453,4 @@ int main( void ) [![CC BY-NC-SA 4.0](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](LICENSE) - \ No newline at end of file +