結局配列の要素数取得はsizeof以外でどうやるの?
っと思い調べたらstd::extentっていうのがあるんだな
これからはこれを使うべきなのかな

https://ideone.com/7wsPV0