31
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

c++ using使い方の名称まとめ

Posted at

c++ではusingの使い方がいろいろある。使い方の名称をしらないと検索もかけられないのでそのまとめ。解説リンク付き。

名称 用途 サンプルコード
エイリアス宣言
型エイリアス
エイリアステンプレート
型の別名の定義 using Int = int;
usingデイレクティブ namespace記述の省略 using namespace std;
using宣言 namespace記述の省略 using std::cout;
using宣言 クラスのコンスラタや関数の継承
31
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?