aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/matrix.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/matrix.hpp')
-rw-r--r--src/interfaces/matrix.hpp14
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>