Skip to content

Commit

Permalink
勘误
Browse files Browse the repository at this point in the history
  • Loading branch information
hxdnshx authored Mar 27, 2019
1 parent 8725669 commit b0091ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 合法吗?
Expand Down Expand Up @@ -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)
</details>
</details>

0 comments on commit b0091ca

Please sign in to comment.