Compare commits
4 Commits
86930fd8b0
...
feature/sm
| Author | SHA1 | Date | |
|---|---|---|---|
| 045363c733 | |||
| 4d05a9a8fa | |||
| ee1153c393 | |||
| b29695e148 |
@@ -187,8 +187,10 @@ concept floating_point = is_floating_point_v<type_t>;
|
|||||||
|
|
||||||
|
|
||||||
template <typename input_t, typename output_t>
|
template <typename input_t, typename output_t>
|
||||||
constexpr inline void copy(input_t* start, input_t* end, output_t* dest_start) {
|
constexpr inline void copy(const input_t* start, const input_t* end, output_t* dest_start) {
|
||||||
memcpy(start, dest_start, end - start);
|
auto temp = start;
|
||||||
|
while (temp != end)
|
||||||
|
*(dest_start++) = *(temp++);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -235,13 +237,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
constexpr array() noexcept = default;
|
constexpr array() noexcept = default;
|
||||||
|
constexpr array(const array&) = default;
|
||||||
constexpr array(array&) = default;
|
|
||||||
|
|
||||||
constexpr array(array&&) = default;
|
constexpr array(array&&) = default;
|
||||||
|
|
||||||
constexpr array& operator=(array& other) = default;
|
constexpr array& operator=(const array& other) = default;
|
||||||
|
|
||||||
constexpr array& operator=(array&& other) = default;
|
constexpr array& operator=(array&& other) = default;
|
||||||
|
|
||||||
constexpr void swap(array<data_t, t_size>& other) noexcept {
|
constexpr void swap(array<data_t, t_size>& other) noexcept {
|
||||||
@@ -272,6 +271,14 @@ public:
|
|||||||
return (&(m_data[t_size - 1]) + 1);
|
return (&(m_data[t_size - 1]) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr const_iterator begin() const noexcept {
|
||||||
|
return &(m_data[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
constexpr const_iterator end() const noexcept {
|
||||||
|
return (&(m_data[t_size - 1]) + 1);
|
||||||
|
}
|
||||||
|
|
||||||
constexpr const_iterator cbegin() const noexcept {
|
constexpr const_iterator cbegin() const noexcept {
|
||||||
return &(m_data[0]);
|
return &(m_data[0]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user