constexpr scaled_accessor() = default; // (1)
template<class OtherNestedAccessor>
explicit(!is_convertible_v<OtherNestedAccessor, NestedAccessor>)
constexpr scaled_accessor(const scaled_accessor<ScalingFactor, OtherNestedAccessor>& other); // (2)
constexpr scaled_accessor(const ScalingFactor& s, const NestedAccessor& a); // (3)
概要
- (1) : デフォルトコンストラクタ
- (2) : 他
scaled_accessorからの変換コンストラクタ - (3) :
ScalingFactorとNestedAccessorから構築
テンプレートパラメータ制約
- (2) :
is_constructible_v<NestedAccessor, const OtherNestedAccessor&> == true
効果
- (2) :
scaling-factorをother.scaling_factor()で、nested-accessorをother.nested_accessor()で直接非リスト初期化する。 - (3) :
scaling-factorをsで、nested-accessorをaで直接非リスト初期化する。
バージョン
言語
- C++26
処理系
- Clang: ??
- GCC: ??
- ICC: ??
- Visual C++: ??