約797,000,000件1ページ目

日本語のみで絞り込む

2023/2/23 -1) Specifies that a constructor or conversion function(since C++11)or deduction guide(since C++17) is explicit, that is, it cannot be used for ...

2008/9/23 -Using the explicit keyword in a class interface enforces the user of the interface to be explicit about a desired conversion. · "constructor to ...

2022/9/14 -Explicit Keyword in C++ is used to mark constructors to not implicitly convert types in C++. It is optional for constructors that take ...

2023/10/24 -In C++, the explicit keyword is used with a constructor to prevent it from performing implicit conversions. A C++ explicit constructor is ...

2023/4/11 -A user-defined type can define a custom implicit or explicit conversion from or to another type. ... class UserDefinedConversions { public static ...

A class object with a constructor must be explicitly initialized or have a default constructor. Except for aggregate initialization, explicit initialization ...

2023/12/29 -Member functions, member classes, and static data members of class templates can be explicitly instantiated from their member definitions.

2022/9/29 -A class can implement interfaces that contain a member with the same signature in C#. Explicit implementation creates a class member specific to

Bear in mind the compiler can treat constructors with default values as single-argument, and therefor perform type conversions with them: class C { public: ...

2022/5/16 -The solution is the explicit keyword. This removes the implicit conversion from the equation. class foo { public: explicit foo(double); }; void ...