6 captures
04 Aug 2017 - 11 Oct 2025
Jul
AUG
Sep
04
2016
2017
2018
success
fail
About this capture
COLLECTED BY
Organization:
Internet Archive
The Internet Archive discovers and captures web pages through many different web crawls. At any given time several distinct crawls are running, some for months, and some every day or longer. View the web archive through the
Wayback Machine
.
Collection:
Wide Crawl Number 16: Started June 3rd, 2017 - Still running
Web wide crawl number 16
The seed list for Wide00016 was made from the join of the top 1 million domains from CISCO and the top 1 million domains from Alexa.
TIMESTAMPS
The Wayback Machine - https://web.archive.org/web/20170804024503/http://zh.cppreference.com/w/cpp/memory/allocator/destroy
cppreference.com
搜索
创建账户
登录
名字空间
页面
讨论
变换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
查看
编辑
历史
操作
std::allocator::
destroy
来自cppreference.com
<
cpp
|
memory
|
allocator
C++
语言
标准库头文件
概念
实用工具库
字符串库
容器库
算法库
迭代器库
数值计算库
输入/输出库
本地化库
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
文件系统库
(C++17)
技术规范
[编辑]
动态内存管理
智能指针
unique_ptr
(C++11)
shared_ptr
(C++11)
weak_ptr
(C++11)
auto_ptr
(C++17 前)
owner_less
(C++11)
enable_shared_from_this
(C++11)
bad_weak_ptr
(C++11)
default_delete
(C++11)
分配器
allocator
allocator_traits
(C++11)
allocator_arg_t
(C++11)
allocator_arg
(C++11)
uses_allocator
(C++11)
scoped_allocator_adaptor
(C++11)
pmr::polymorphic_allocator
(C++17)
内存资源
pmr::memory_resource
(C++17)
pmr::get_default_resource
(C++17)
pmr::set_default_resource
(C++17)
pmr::new_delete_resource
(C++17)
pmr::null_memory_resource
(C++17)
pmr::synchronized_pool_resource
(C++17)
pmr::unsynchronized_pool_resource
(C++17)
pmr::monotonic_buffer_resource
(C++17)
pmr::pool_options
(C++17)
未初始化存储
uninitialized_copy
uninitialized_fill
uninitialized_move
(C++17)
uninitialized_default_construct
(C++17)
uninitialized_value_construct
(C++17)
destroy
(C++17)
uninitialized_copy_n
(C++11)
uninitialized_fill_n
uninitialized_move_n
(C++17)
uninitialized_default_construct_n
(C++17)
uninitialized_value_construct_n
(C++17)
destroy_n
(C++17)
destroy_at
(C++17)
raw_storage_iterator
(C++17起过时)
get_temporary_buffer
(C++17起过时)
return_temporary_buffer
(C++17起过时)
垃圾收集支持
declare_reachable
(C++11)
undeclare_reachable
(C++11)
declare_no_pointers
(C++11)
undeclare_no_pointers
(C++11)
pointer_safety
(C++11)
get_pointer_safety
(C++11)
杂项
pointer_traits
(C++11)
addressof
(C++11)
align
(C++11)
C 库
malloc
aligned_alloc
(C++17)
calloc
realloc
free
低层内存管理
[编辑]
std::allocator
成员函数
allocator::allocator
allocator::~allocator
allocator::address
allocator::allocate
allocator::deallocate
allocator::max_size
allocator::construct
allocator::destroy
非成员函数
operator==
operator!=
[编辑]
定义于头文件
<memory>
void
destroy
(
pointer p
)
;
(C++11 前)
template
<
class
U
>
void
destroy
(
U
*
p
)
;
(C++11 起)
(C++17中过时)
调用
p
所指的对象的析构函数
1)
调用
(
(
T
*
)
p
)
-
>
~T
(
)
2)
调用
p
-
>
~U
(
)
[
编辑
]
参数
p
-
指向要被销毁的对象的指针
[
编辑
]
返回值
(无)
[
编辑
]
参阅
destroy
[静态]
析构存储于分配存储的对象
(函数模板)
[编辑]