std::experimental::pmr::memory_resource:: do_deallocate
From cppreference.net
<
cpp
|
experimental
|
memory resource
C++
Polymorphic allocator library
Convenience aliases for containers using
polymorphic_allocator
|
||||
| Memory resource classes | ||||
| Global memory resources | ||||
| Type-erased allocator support for existing classes | ||||
std::experimental::pmr::memory_resource
| Public member functions | ||||
| Protected member functions | ||||
|
memory_resource::do_deallocate
|
||||
| Non-member functions | ||||
|
virtual
void
*
do_deallocate
(
void
*
p,
std::
size_t
bytes,
std::
size_t
alignment
)
=
0
;
|
(라이브러리 fundamentals TS) | |
p
가 가리키는 저장 공간을 해제합니다.
p
는 이전에
allocate(bytes, alignment)
를 호출하여 반환된 값이어야 하며, 이 호출은
memory_resource
에서
*
this
와 동일하게 비교되는 대상에 대해 수행되어야 합니다. 또한 해당 저장 공간은 아직 해제되지 않은 상태여야 합니다.
예외
아무것도 던지지 않습니다.
참고 항목
|
메모리 할당 해제
(public member function) |