fork download
  1. #include <array>
  2.  
  3. template<class T>
  4. struct Vector{
  5. T X,Y,Z,W;
  6. };
  7.  
  8. template<class T,int N>
  9. struct SoA{
  10. std::array<T,N> Value;
  11. };
  12.  
  13. int main(){
  14. SoA<Vector<float>,16> Data={0,};
  15.  
  16. Data.Value[0].X=123.4f;
  17.  
  18. }
Success #stdin #stdout 0s 2924KB
stdin
Standard input is empty
stdout
Standard output is empty