LA
Size: a a a
LA
VS
LA
AS
template<typename T>Где return - это уб? С учётом того, что данные уменя не в масиве, а просто как переменные
T& Vector3D<T>::operator[] (std::size_t index)
{
return (&this->x)[index];
}
AS
AS
AS
template<typename T>
struct point {
T x;
T y;
T z;
constexpr T operator[](size_t index) const {
constexpr T point::*accessors[] = {
&point::x,
&point::y,
&point::z,
};
return this->*accessors[index];
}
};
AS
AS
VS
template<typename T> class A { /* def1 */ };
template<> class A<int> { /* def2 */ };
A<int> a;
def1
вообще не интересен и его может вовсе не быть, если я все правильно понимаюVS
C
AS
LA
VS
LA
VS
SS
VS
AS