Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Low level memory management

      From cppreference.com
      <cpp‎ |memory
       
       
      Utilities library
       
      Memory management library
      (exposition only*)
      Allocators
      Uninitialized memory algorithms
      Constrained uninitialized memory algorithms
      Memory resources
      Uninitialized storage(until C++20)
      (until C++20*)
      (until C++20*)
      Garbage collector support(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
       
       

      Thenew-expression is the only way to create an object or an array of objects with dynamic storage duration, that is, with lifetime not restricted to the scope in which it is created. A new-expression obtains storage by calling an allocation function. Adelete-expression destroys a most derived object or an array created by a new-expression and calls the deallocation function. The default allocation and deallocation functions, along with related functions, types, and objects, are declared in the header<new>.

      Defined in header<new>

      Contents

      Functions
      allocation functions
      (function)[edit]
      deallocation functions
      (function)[edit]
      obtains the current new handler
      (function)[edit]
      registers a new handler
      (function)[edit]
      Classes
      exception thrown when memory allocation fails
      (class)[edit]
      exception thrown on allocation of array with invalid length
      (class)[edit]
      type used to pass alignment to alignment-aware allocation and deallocation functions
      (enum)[edit]
      Types
      function pointer type of the new handler
      (typedef)[edit]
      Objects
      a tag used to select a non-throwingallocation function
      (tag)[edit]
      a tag used to select destroying-delete overloads ofoperator delete
      (tag)[edit]
      Object access
      (C++17)
      pointer optimization barrier
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/memory/new&oldid=166034"

      [8]ページ先頭

      ©2009-2025 Movatter.jp