feature/no_std_lib #9

Merged
an.tsouchlos merged 17 commits from feature/no_std_lib into master 2022-03-17 22:45:10 +00:00
Showing only changes of commit 4d05a9a8fa - Show all commits

View File

@ -240,7 +240,7 @@ public:
constexpr array(const array&) = default; constexpr array(const 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 {
@ -271,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]);
} }