rename Array to array
This commit is contained in:
@ -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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user