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/graphics/matrix.tpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/engine/graphics/matrix.tpp') diff --git a/src/engine/graphics/matrix.tpp b/src/engine/graphics/matrix.tpp index e0e65bb..527c61f 100644 --- a/src/engine/graphics/matrix.tpp +++ b/src/engine/graphics/matrix.tpp @@ -49,7 +49,7 @@ void Matrix::fill(Element element) noexcept } template -Element Matrix::get(const Vector2 &pos) const noexcept +auto Matrix::get(const Vector2 &pos) const noexcept -> Element { auto x = static_cast(pos.get_x()); @@ -70,31 +70,31 @@ void Matrix::set(const Vector2 &pos, Element element) noexcept } template -uint32_t Matrix::get_row_cnt() const noexcept +auto Matrix::get_row_cnt() const noexcept -> uint32_t { return _row_cnt; } template -uint32_t Matrix::get_column_cnt() const noexcept +auto Matrix::get_column_cnt() const noexcept -> uint32_t { return _column_cnt; } template -MatrixIterator Matrix::begin() const noexcept +auto Matrix::begin() const noexcept -> MatrixIterator { return MatrixIterator(_matrix, _column_cnt); } template -MatrixIterator Matrix::end() const noexcept +auto Matrix::end() const noexcept -> MatrixIterator { return MatrixIterator(_matrix + _row_cnt, _column_cnt); } template -Matrix &Matrix::operator=(const Matrix &rhs) noexcept +auto Matrix::operator=(const Matrix &rhs) noexcept -> Matrix & { if (&rhs != this) { @@ -111,7 +111,7 @@ Matrix &Matrix::operator=(const Matrix &rhs) noexcept } template -Matrix &Matrix::operator=(Matrix &&rhs) noexcept +auto Matrix::operator=(Matrix &&rhs) noexcept -> Matrix & { if (&rhs != this) { -- cgit v1.2.3-18-g5258