std::experimental::pmr::memory_resource::allocate
From cppreference.com
< cpp | experimental | memory resource
| 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) |