From dc6222611ad14a33f642396558ba84ecba9d6605 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 14 Mar 2022 18:02:18 +0100 Subject: perf: add noexcept almost everywhere --- src/interfaces/matrix.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/interfaces/matrix.hpp') 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 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 -- cgit v1.2.3-18-g5258