diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-29 17:40:04 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:57 +0200 |
commit | a039c8ad36779903571419cb06cd052f8fc41512 (patch) | |
tree | 4fdced6941a048bdd4b032fab7012bca00a6028e /src/engine/matrix_iterator.hpp | |
parent | acf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff) |
refactor: use trailing return types
Diffstat (limited to 'src/engine/matrix_iterator.hpp')
-rw-r--r-- | src/engine/matrix_iterator.hpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/engine/matrix_iterator.hpp b/src/engine/matrix_iterator.hpp index 5d35052..674216f 100644 --- a/src/engine/matrix_iterator.hpp +++ b/src/engine/matrix_iterator.hpp @@ -10,13 +10,13 @@ public: explicit MatrixRowIterator(ColumnPtr column_ptr) noexcept; - MatrixRowIterator &operator++() noexcept; - MatrixRowIterator operator++(int) noexcept; + auto operator++() noexcept -> MatrixRowIterator &; + auto operator++(int) noexcept -> MatrixRowIterator; - Element &operator*() const noexcept; + auto operator*() const noexcept -> Element &; - bool operator==(const MatrixRowIterator &rhs) const noexcept; - bool operator!=(const MatrixRowIterator &rhs) const noexcept; + auto operator==(const MatrixRowIterator &rhs) const noexcept -> bool; + auto operator!=(const MatrixRowIterator &rhs) const noexcept -> bool; private: ColumnPtr _column_ptr; @@ -30,9 +30,9 @@ public: explicit MatrixRow(RowPtr row_ptr, const uint32_t &column_cnt) noexcept; - [[nodiscard]] MatrixRowIterator<Element> begin() const noexcept; + [[nodiscard]] auto begin() const noexcept -> MatrixRowIterator<Element>; - [[nodiscard]] MatrixRowIterator<Element> end() const noexcept; + [[nodiscard]] auto end() const noexcept -> MatrixRowIterator<Element>; private: RowPtr _row_ptr; @@ -48,13 +48,13 @@ public: explicit MatrixIterator(RowPtr row_ptr, const uint32_t &column_cnt) noexcept; - MatrixIterator &operator++() noexcept; - MatrixIterator operator++(int) noexcept; + auto operator++() noexcept -> MatrixIterator &; + auto operator++(int) noexcept -> MatrixIterator; - MatrixRow<Element> operator*() const noexcept; + auto operator*() const noexcept -> MatrixRow<Element>; - bool operator==(const MatrixIterator &rhs) const noexcept; - bool operator!=(const MatrixIterator &rhs) const noexcept; + auto operator==(const MatrixIterator &rhs) const noexcept -> bool; + auto operator!=(const MatrixIterator &rhs) const noexcept -> bool; private: RowPtr _row_ptr; |