From a039c8ad36779903571419cb06cd052f8fc41512 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 17:40:04 +0200 Subject: refactor: use trailing return types --- src/engine/matrix_iterator.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/engine/matrix_iterator.hpp') 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 begin() const noexcept; + [[nodiscard]] auto begin() const noexcept -> MatrixRowIterator; - [[nodiscard]] MatrixRowIterator end() const noexcept; + [[nodiscard]] auto end() const noexcept -> MatrixRowIterator; 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 operator*() const noexcept; + auto operator*() const noexcept -> MatrixRow; - 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; -- cgit v1.2.3-18-g5258