Arrays Introduction

  • + 2 comments

    If you don't want to use std::vector here, you can use std::array instead, not C-style arrays.

    And no, std::vector is not 'much more heavier'. It depends on how you use it (i.e. if you do a lot of reallocations). In my code, there is only one allocation since I provide the size at the initialization.