New演算子
出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2024/05/25 00:23 UTC 版)
newまたはNewは、C++を始めとしたオブジェクト指向プログラミング言語において、インスタンスを作成する演算子である。多くの場合、ヒープ領域からの動的メモリ確保(動的記憶域確保)を伴う。
注釈
出典
- ^ Default-initialization - cppreference.com
- ^ Value-initialization - cppreference.com
- ^ operator new, operator new[] - cppreference.com
- ^ /Zc:throwingNew (Assume operator new throws) | Microsoft Learn
- ^ operator delete, operator delete[] - cppreference.com
- ^ Effective C++ 第3版, 第8章 newとdeleteのカスタマイズ, 52項 プレースメントnewの定義を書いたらプレースメントdeleteの定義も書こう
- ^ Effective C++ 3rd Edition, Chapter 8. Customizing new and delete, Item 52: Write placement delete if you write placement new
- ^ Arrays (C++/CLI and C++/CX) | Microsoft Learn
- ^ Platform, default, and cli Namespaces (C++/CLI and C++/CX) | Microsoft Learn
- ^ Dim ステートメント - Visual Basic | Microsoft Learn
- ^ Option Infer ステートメント - Visual Basic | Microsoft Learn
- ^ instance method Class#new Ruby 1.9.2 リファレンスマニュアル、2013年11月22日閲覧。
- 1 New演算子とは
- 2 New演算子の概要
- 3 他の手法
固有名詞の分類
- New演算子のページへのリンク