aboutsummaryrefslogtreecommitdiff
path: root/src/engine/graphics/matrix.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-29 17:40:04 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commita039c8ad36779903571419cb06cd052f8fc41512 (patch)
tree4fdced6941a048bdd4b032fab7012bca00a6028e /src/engine/graphics/matrix.hpp
parentacf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff)
refactor: use trailing return types
Diffstat (limited to 'src/engine/graphics/matrix.hpp')
-rw-r--r--src/engine/graphics/matrix.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/engine/graphics/matrix.hpp b/src/engine/graphics/matrix.hpp
index 2c9ba81..f71018b 100644
--- a/src/engine/graphics/matrix.hpp
+++ b/src/engine/graphics/matrix.hpp
@@ -23,21 +23,21 @@ public:
void fill(Element element) noexcept override;
- [[nodiscard]] Element get(const Vector2 &pos) const noexcept override;
+ [[nodiscard]] auto get(const Vector2 &pos) const noexcept -> Element override;
void set(const Vector2 &pos, Element element) noexcept override;
- [[nodiscard]] uint32_t get_row_cnt() const noexcept override;
+ [[nodiscard]] auto get_row_cnt() const noexcept -> uint32_t override;
- [[nodiscard]] uint32_t get_column_cnt() const noexcept override;
+ [[nodiscard]] auto get_column_cnt() const noexcept -> uint32_t override;
- [[nodiscard]] MatrixIterator<Element> begin() const noexcept override;
+ [[nodiscard]] auto begin() const noexcept -> MatrixIterator<Element> override;
- [[nodiscard]] MatrixIterator<Element> end() const noexcept override;
+ [[nodiscard]] auto end() const noexcept -> MatrixIterator<Element> override;
- Matrix &operator=(const Matrix &rhs) noexcept;
+ auto operator=(const Matrix &rhs) noexcept -> Matrix &;
- Matrix &operator=(Matrix &&rhs) noexcept;
+ auto operator=(Matrix &&rhs) noexcept -> Matrix &;
private:
gsl::owner<Element **> _matrix;