名前空間
変種
操作

std::experimental::pmr::memory_resource::allocate

From cppreference.com
 
 
 
 
 
void* allocate( std::size_t bytes, std::size_t alignment = alignof(std::max_align_t) );
(Library Fundamentals TS)

bytes バイト以上のストレージを確保します。返されたストレージは、指定された alignment がサポートされている場合はそのアライメントに、それ以外の場合は alignof(std::max_align_t) にアライメントされます。

return do_allocate(bytes, alignment); と同等です。

[編集] 例外

要求されたサイズとアラインメントのストレージを確保できない場合、例外をスローします。

[編集] 関連項目

[virtual]
メモリを割り当てる
(virtual protected member function) [編集]
English 日本語 中文(简体) 中文(繁體)