This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <int N> | |
class Array { | |
int size {N}; | |
int values {N}; | |
friend std::ostream &operator<<(std::ostream &os, const Array &arr) { | |
os << "["; | |
for (const auto &val: arr.values) { | |
os << val << " "; | |
} |