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/interfaces/matrix.hpp | |
parent | acf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff) |
refactor: use trailing return types
Diffstat (limited to 'src/interfaces/matrix.hpp')
-rw-r--r-- | src/interfaces/matrix.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<Element> begin() const noexcept = 0; + [[nodiscard]] virtual auto begin() const noexcept -> MatrixIterator<Element> = 0; - [[nodiscard]] virtual MatrixIterator<Element> end() const noexcept = 0; + [[nodiscard]] virtual auto end() const noexcept -> MatrixIterator<Element> = 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 <typename Element> |