最終更新:2021-01-06 (水) 17:24:11 (1178d)
C++11/キーワード
alignas? (C++11) 属性でアライメントを指定 alignof? (C++11) 指定された型のアライメントを取得 and? && and_eq? &=? asm インラインアセンブラの記述 atomic_cancel? (TM TS) atomic_commit? (TM TS) atomic_noexcept? (TM TS) auto (1) 自動変数指示(C++03) / 型の自動判別 (C++11) bitand? & bitor? |? bool 論理型 break case? catch? char char8_t (C++20?) char16_t? (C++11) char32_t? (C++11) class (1) compl? ~ concept? (C++20?) const 不定の指定 consteval? (C++20?) constexpr (C++11) 不定式 constinit? (C++20?) const_cast? continue? co_await? (C++20?) co_return? (C++20?) co_yield? (C++20?) decltype (C++11) 指定された式の型を取得 default (1) switchにおけるデフォルト処理 / クラスで暗黙に作られるメンバ関数を明示的に指定 delete (1) newで確保された領域を開放 / 暗黙的に生成される関数を削除(C++11) do? double dynamic_cast 実行時型情報に基づくキャスト else? enum explicit export (1) (3) 外部定義 (C++03) / C++11で削除 extern (1) 外部宣言 false? float for ループ処理 / 配列やコンテナの内容を列挙 (C++11) friend goto? if inline (1) int long mutable? (1) namespace? new noexcept? (C++11) 例外非送出の指定 not? ! not_eq? !=? nullptr? (C++11) ぬるぽ operator? or? ||? or_eq? |=? private protected public reflexpr? (reflection TS) register (2) C++11で非推奨 reinterpret_cast requires? (C++20?) return short signed? sizeof (1) static static_assert? (C++11) コンパイル時アサート static_cast 静的なキャスト struct (1) switch? synchronized (TM TS) template this thread_local (C++11) スレッドローカルストレージ指定 throw? true try typedef typeid? typename? union unsigned? using (1) 指定したスコープに名前を導入 / 型の別名を定義 (C++11) virtual void volatile wchar_t while xor? ^ xor_eq? ^=? - (1) — meaning changed or new meaning added in C++11.
- (2) — meaning changed in C++17.
- (3) — meaning changed in C++20?.
- TM TS - Transactional Memory Technical Specification
C++11で追加
- alignas?
- alignof?
- char16_t?
- char32_t?
- constexpr
- decltype
- noexcept?
- nullptr?
- static_assert?
- thread_local