std::experimental::pmr:: monotonic_buffer_resource
From cppreference.net
<
cpp
|
experimental
|
헤더 파일에 정의됨
<experimental/memory_resource>
|
||
|
class
monotonic_buffer_resource
:
public
memory_resource
;
|
(라이브러리 펀더멘털 TS) | |
클래스
std::experimental::pmr::monotonic_buffer_resource
는 할당된 메모리를 해당 리소스가 파괴될 때만 해제하는 특수 목적의 메모리 리소스 클래스입니다. 이는 메모리가 소수의 객체를 구성하는 데 사용된 후 한꺼번에 해제되는 상황에서 매우 빠른 메모리 할당을 목적으로 설계되었습니다.
monotonic_buffer_resource
는 초기 버퍼와 함께 생성될 수 있습니다. 초기 버퍼가 없거나 버퍼가 소진된 경우, 생성 시 제공된
upstream memory resource
에서 추가 버퍼를 획득합니다. 획득하는 버퍼의 크기는 기하급수적으로 증가합니다.
monotonic_buffer_resource
는 스레드 안전하지 않습니다.
멤버 함수
monotonic_buffer_resource
를 생성합니다
(public member function) |
|
|
[virtual]
|
monotonic_buffer_resource
를 파괴하고 모든 할당된 메모리를 해제합니다
(virtual public member function) |
|
operator=
[deleted]
|
복사 할당 연산자가 삭제됨.
monotonic_buffer_resource
는 복사 할당이 불가능합니다
(public member function) |
Public 멤버 함수 |
|
|
모든 할당된 메모리를 해제합니다
(public member function) |
|
|
상위 스트림 메모리 리소스에 대한 포인터를 반환합니다
(public member function) |
|
Protected 멤버 함수 |
|
|
[virtual]
|
메모리를 할당합니다
(virtual protected member function) |
|
[virtual]
|
no-op (아무 작업도 수행하지 않음)
(virtual protected member function) |
|
[virtual]
|
다른
memory_resource
와 동등성을 비교합니다
(virtual protected member function) |