約7,360件1ページ目

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:6か月以内
  • 2024/5/29 -コンストラクタ呼び出しはこれを使いましょう。使うことを進める理由と()呼び出しとの違いを説明します。 と、その前にC++の変数初期化について ...

    2024/3/2 -引数が1つのコンストラクタは変換コンストラクタという機能に注意が必要で、explicitキーワードを付けで無効化すると良いが、コピーコンストラクタにはexplicitキーワード ...

    2024/6/15 -In C++, an explicit constructor is a special type of constructor that prevents implicit conversions from occurring during object initialization.

    2024/4/23 -The explicit keyword is used with constructors in C++ to prevent them from doing implicit conversions. A C++ explicit constructor is marked to not implicitly ...

    2024/6/11 -これは、デフォルトコンストラクタexplicit が付いていると、. std::unordered_set<int> m = {};. のようなコード(C++11 から導入された、コピーリスト初期化による ...

    2024/6/6 -Constructors are non-static member functions declared with a special declarator syntax, they are used to initialize objects of their class types. A constructor ...

    Copy constructors-Direct-initialization-Std::initializer_list

    2024/3/7 -Constructor in C++ is a special method that is invoked automatically at the time of object creation. It is used to initialize the data members of new ...

    2024/3/23 -Make the whole class a template. I think this makes sense because you are going to select which root to use at compile time anyway. (C++17 example)

    2024/6/20 -Converts between types using a combination of explicit and implicit conversions.

    2024/5/21 -In copy-list-initialization, if an explicit constructor is chosen, the initialization is ill-formed and the diagnostic should be reported. #92813. Open.