NP
T(const T&&) const noexcept
в данном случае, он бы мог означать продолжение жизни объекта, но под другим именемconst Obj a1;
Obj a2 = std::move(a1);
Что в таком случае должно быть?
Size: a a a
NP
T(const T&&) const noexcept
в данном случае, он бы мог означать продолжение жизни объекта, но под другим именемconst Obj a1;
Obj a2 = std::move(a1);
MD
const Obj a1;
Obj a2 = std::move(a1);
const Obj a1; const Obj a2 = std::move(a1)
- то хотелось быNP
const Obj a1; const Obj a2 = std::move(a1)
- то хотелось быMD
MD
T = const Obj
MD
NP
MD
NP
MD
MD
const T t0;- вызывается только 1
const T t1 = std::move(t0);
const T t2 = std::move(t1);
~T()
если не определён T(const T&&)
ПК
CD
void some_view::foo(int & x) {
this->ref1 = std::ref(x);
}
void some_view::foo(int const& x) {
this->ref2 = std::cref(x);
}
NP
void some_view::foo(int & x) {
this->ref1 = std::ref(x);
}
void some_view::foo(int const& x) {
this->ref2 = std::cref(x);
}
CD
CD
NP
CD
CD
NP