1

rename Array to array

This commit is contained in:
2022-07-23 21:32:51 +02:00
parent 1788df7fad
commit c8db2c8878
3 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@
namespace bse {
template<typename T, const std::size_t N>
class Array {
class array {
public:
using Iterator = ContinuousIterator<T>;
@ -27,7 +27,7 @@ namespace bse {
return this->buf[i];
}
void swap(Array<T, N>& other) {
void swap(array<T, N>& other) {
for (std::size_t i = 0; i < N; ++i) {
std::swap(this->buf[i], other[i]);
}
@ -36,7 +36,7 @@ namespace bse {
// Array& other has to have size n:
// arr1.swap_n<5>(arr2) => arr2 has size 5, arr1 has size >= 5
template<std::size_t n>
void swap_n(Array<T, n>& other) {
void swap_n(array<T, n>& other) {
for (std::size_t i = 0; i < n; ++i) {
std::swap(this->buf[i], other[i]);
}