Top/Lang/C++

目次

C++ のキーワード

プリプロセッサ

#error <error-message>

初期化

継承される可能性のあるclassは、デストラクタを仮想にする

型の別名宣言 using

型を別名宣言する場合

関数ポインタに対して宣言する場合

typedef void (*funcptr)(int);       // typedef を使用する場合
using funcptr = void (*)(int);      // using を使用する場合

コンパイル時に構造体のサイズを知る

cast

static_cast

dynamic_cast

const_cast

reinterpret_cast

new / delete

new

delete

配置 new

アライメント

アライメントの取得

アライメントの指定

そもそも、アライメントとは?

gcc / g++

参考リンク


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-12-12 (月) 00:44:41