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/engine/matrix_iterator.tpp | |
| parent | acf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff) | |
refactor: use trailing return types
Diffstat (limited to 'src/engine/matrix_iterator.tpp')
| -rw-r--r-- | src/engine/matrix_iterator.tpp | 24 | 
1 files changed, 12 insertions, 12 deletions
diff --git a/src/engine/matrix_iterator.tpp b/src/engine/matrix_iterator.tpp index 52952c9..031136c 100644 --- a/src/engine/matrix_iterator.tpp +++ b/src/engine/matrix_iterator.tpp @@ -11,7 +11,7 @@ MatrixRowIterator<Element>::MatrixRowIterator(ColumnPtr column_ptr) noexcept  }  template <typename Element> -MatrixRowIterator<Element> &MatrixRowIterator<Element>::operator++() noexcept +auto MatrixRowIterator<Element>::operator++() noexcept -> MatrixRowIterator<Element> &  {  	++_column_ptr; @@ -19,7 +19,7 @@ MatrixRowIterator<Element> &MatrixRowIterator<Element>::operator++() noexcept  }  template <typename Element> -MatrixRowIterator<Element> MatrixRowIterator<Element>::operator++(int) noexcept +auto MatrixRowIterator<Element>::operator++(int) noexcept -> MatrixRowIterator<Element>  {  	auto copy = *this; @@ -29,19 +29,19 @@ MatrixRowIterator<Element> MatrixRowIterator<Element>::operator++(int) noexcept  }  template <typename Element> -Element &MatrixRowIterator<Element>::operator*() const noexcept +auto MatrixRowIterator<Element>::operator*() const noexcept -> Element &  {  	return *_column_ptr;  }  template <typename Element> -bool MatrixRowIterator<Element>::operator==(const MatrixRowIterator &rhs) const noexcept +auto MatrixRowIterator<Element>::operator==(const MatrixRowIterator &rhs) const noexcept -> bool  {  	return _column_ptr == rhs._column_ptr;  }  template <typename Element> -bool MatrixRowIterator<Element>::operator!=(const MatrixRowIterator &rhs) const noexcept +auto MatrixRowIterator<Element>::operator!=(const MatrixRowIterator &rhs) const noexcept -> bool  {  	return _column_ptr != rhs._column_ptr;  } @@ -55,13 +55,13 @@ MatrixRow<Element>::MatrixRow(RowPtr row_ptr, const uint32_t &column_cnt) noexce  }  template <typename Element> -MatrixRowIterator<Element> MatrixRow<Element>::begin() const noexcept +auto MatrixRow<Element>::begin() const noexcept -> MatrixRowIterator<Element>  {  	return MatrixRowIterator<Element>(_row_ptr);  }  template <typename Element> -MatrixRowIterator<Element> MatrixRow<Element>::end() const noexcept +auto MatrixRow<Element>::end() const noexcept -> MatrixRowIterator<Element>  {  	return MatrixRowIterator<Element>(_row_ptr + _column_cnt);  } @@ -76,7 +76,7 @@ MatrixIterator<Element>::MatrixIterator(RowPtr row_ptr,  }  template <typename Element> -MatrixIterator<Element> &MatrixIterator<Element>::operator++() noexcept +auto MatrixIterator<Element>::operator++() noexcept -> MatrixIterator<Element> &  {  	++_row_ptr; @@ -84,7 +84,7 @@ MatrixIterator<Element> &MatrixIterator<Element>::operator++() noexcept  }  template <typename Element> -MatrixIterator<Element> MatrixIterator<Element>::operator++(int) noexcept +auto MatrixIterator<Element>::operator++(int) noexcept -> MatrixIterator<Element>  {  	auto copy = *this; @@ -94,19 +94,19 @@ MatrixIterator<Element> MatrixIterator<Element>::operator++(int) noexcept  }  template <typename Element> -MatrixRow<Element> MatrixIterator<Element>::operator*() const noexcept +auto MatrixIterator<Element>::operator*() const noexcept -> MatrixRow<Element>  {  	return MatrixRow(*_row_ptr, _column_cnt);  }  template <typename Element> -bool MatrixIterator<Element>::operator==(const MatrixIterator &rhs) const noexcept +auto MatrixIterator<Element>::operator==(const MatrixIterator &rhs) const noexcept -> bool  {  	return _row_ptr == rhs._row_ptr;  }  template <typename Element> -bool MatrixIterator<Element>::operator!=(const MatrixIterator &rhs) const noexcept +auto MatrixIterator<Element>::operator!=(const MatrixIterator &rhs) const noexcept -> bool  {  	return _row_ptr != rhs._row_ptr;  }  | 
