GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::allocation_result - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. memory
  3. allocation_result

最終更新日時: 2024年08月05日 19時26分27秒 (JST)
Akira Takahashi が更新

履歴 編集

class
<memory>

std::allocation_result(C++23)

namespace std {
  template <class Pointer, class SizeType = std::size_t>
  struct allocation_result {
    Pointer ptr;
    SizeType count;
  };
}

概要

std::allocation_resultは、allocate_at_least()関数の戻り値型であり、以下の要素をもつ:

変数名 説明
ptr 確保されたメモリの先頭を指すポインタ
count 実際に確保された要素数

バージョン

言語

  • C++23

処理系

  • Clang: 19 ❌
  • GCC: 14 ❌
  • Visual C++: 2022 Update 10 ❌

関連項目

  • std::allocator_traits::allocate_at_least()
  • std::allocator::allocate_at_least()

参照

  • P0401R6 Providing size feedback in the Allocator interface
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.