std::pmr::monotonic_buffer_resource:: monotonic_buffer_resource
From cppreference.net
<
cpp
|
memory
|
monotonic buffer resource
C++
Memory management library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::pmr::monotonic_buffer_resource
|
monotonic_buffer_resource::monotonic_buffer_resource
|
||||
| Public member functions | ||||
| Protected member functions | ||||
|
monotonic_buffer_resource
(
)
;
|
(1) | (C++17부터) |
|
explicit
monotonic_buffer_resource
(
std::
pmr
::
memory_resource
*
upstream
)
;
|
(2) | (C++17부터) |
|
explicit
monotonic_buffer_resource
(
std::
size_t
initial_size
)
;
|
(3) | (C++17부터) |
|
monotonic_buffer_resource
(
std::
size_t
initial_size,
std:: pmr :: memory_resource * upstream ) ; |
(4) | (C++17부터) |
|
monotonic_buffer_resource
(
void
*
buffer,
std::
size_t
buffer_size
)
;
|
(5) | (C++17부터) |
|
monotonic_buffer_resource
(
void
*
buffer,
std::
size_t
buffer_size,
std:: pmr :: memory_resource * upstream ) ; |
(6) | (C++17부터) |
|
monotonic_buffer_resource
(
const
monotonic_buffer_resource
&
)
=
delete
;
|
(7) | (C++17부터) |
monotonic_buffer_resource
를 생성합니다. 업스트림 메모리 리소스 포인터를 받지 않는 생성자들은
std::pmr::get_default_resource
의 반환 값을 업스트림 메모리 리소스로 사용합니다.
1,2)
현재 버퍼
를 null로 설정하고
다음 버퍼 크기
를 구현 정의 크기로 설정합니다.
3,4)
현재 버퍼
를 null로 설정하고
다음 버퍼 크기
를
initial_size
이상의 크기로 설정합니다.
5,6)
현재 버퍼
를
buffer
로 설정하고
다음 버퍼 크기
를
buffer_size
(단, 1보다 작을 수 없음)로 설정합니다. 그런 다음 구현에서 정의된 증가 계수(정수일 필요는 없음)만큼
다음 버퍼 크기
를 증가시킵니다.
7)
복사 생성자가 삭제되었습니다.
매개변수
| upstream | - | 사용할 업스트림 메모리 리소스; 유효한 메모리 리소스를 가리켜야 함 |
| initial_size | - | 할당할 첫 번째 버퍼의 최소 크기; 0보다 커야 함 |
| buffer | - | 사용할 초기 버퍼 |
| buffer_size | - |
초기 버퍼의 크기;
buffer
의 바이트 수를 초과할 수 없음
|