Index sequence

c++ Index sequence…

After struggling a bit, I finally got it (I think)…Well at least its something that I understand and can work with.. Here is what I have:

Ok so what does it do…
output:

It creates 8 Test objects at compile time and sets there value according to what index they have and the function f..Not much use, but quite useful in other cases.

Lämna ett svar

E-postadressen publiceras inte. Obligatoriska fält är märkta *