aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/matrix.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-14 18:02:18 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:56 +0200
commitdc6222611ad14a33f642396558ba84ecba9d6605 (patch)
treed759020233b66be62c5539209a03842d283b67a9 /src/interfaces/matrix.hpp
parentdbab54ebf134b6ab2cf719d7c26a191fbffeed34 (diff)
perf: add noexcept almost everywhere
Diffstat (limited to 'src/interfaces/matrix.hpp')
-rw-r--r--src/interfaces/matrix.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/interfaces/matrix.hpp b/src/interfaces/matrix.hpp
index e0a92bf..44a26ed 100644
--- a/src/interfaces/matrix.hpp
+++ b/src/interfaces/matrix.hpp
@@ -9,21 +9,21 @@ template <typename Element>
class IMatrix
{
public:
- virtual ~IMatrix() = default;
+ virtual ~IMatrix() noexcept = default;
/**
* Fills the matrix with a element.
*
* @param element A element
*/
- virtual void fill(Element element) = 0;
+ virtual void fill(Element element) noexcept = 0;
/**
* Returns a element of the matrix.
*
* @param pos The position of a element
*/
- [[nodiscard]] virtual Element get(const Vector2 &pos) const = 0;
+ [[nodiscard]] virtual Element get(const Vector2 &pos) const noexcept = 0;
/**
* Sets a element of the matrix.
@@ -31,17 +31,17 @@ public:
* @param pos The position of a element
* @param element A new element
*/
- virtual void set(const Vector2 &pos, Element element) = 0;
+ virtual void set(const Vector2 &pos, Element element) noexcept = 0;
/**
* Returns the number of rows the matrix has.
*/
- [[nodiscard]] virtual uint32_t rows() const = 0;
+ [[nodiscard]] virtual uint32_t rows() const noexcept = 0;
/**
* Returns the number of columns the matrix has.
*/
- [[nodiscard]] virtual uint32_t columns() const = 0;
+ [[nodiscard]] virtual uint32_t columns() const noexcept = 0;
};
template <typename Element>