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.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>