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/interfaces/matrix.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/interfaces/matrix.hpp') diff --git a/src/interfaces/matrix.hpp b/src/interfaces/matrix.hpp index 2b33342..edcf935 100644 --- a/src/interfaces/matrix.hpp +++ b/src/interfaces/matrix.hpp @@ -21,21 +21,21 @@ public: virtual void fill(Element element) noexcept = 0; - [[nodiscard]] virtual Element get(const Vector2 &pos) const noexcept = 0; + [[nodiscard]] virtual auto get(const Vector2 &pos) const noexcept -> Element = 0; virtual void set(const Vector2 &pos, Element element) noexcept = 0; - [[nodiscard]] virtual uint32_t get_row_cnt() const noexcept = 0; + [[nodiscard]] virtual auto get_row_cnt() const noexcept -> uint32_t = 0; - [[nodiscard]] virtual uint32_t get_column_cnt() const noexcept = 0; + [[nodiscard]] virtual auto get_column_cnt() const noexcept -> uint32_t = 0; - [[nodiscard]] virtual MatrixIterator begin() const noexcept = 0; + [[nodiscard]] virtual auto begin() const noexcept -> MatrixIterator = 0; - [[nodiscard]] virtual MatrixIterator end() const noexcept = 0; + [[nodiscard]] virtual auto end() const noexcept -> MatrixIterator = 0; - IMatrix &operator=(const IMatrix &matrix) noexcept = default; + auto operator=(const IMatrix &matrix) noexcept -> IMatrix & = default; - IMatrix &operator=(IMatrix &&matrix) noexcept = default; + auto operator=(IMatrix &&matrix) noexcept -> IMatrix & = default; }; template -- cgit v1.2.3-18-g5258