diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-14 18:02:18 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:56 +0200 |
commit | dc6222611ad14a33f642396558ba84ecba9d6605 (patch) | |
tree | d759020233b66be62c5539209a03842d283b67a9 /src/engine/graphics/string_matrix.hpp | |
parent | dbab54ebf134b6ab2cf719d7c26a191fbffeed34 (diff) |
perf: add noexcept almost everywhere
Diffstat (limited to 'src/engine/graphics/string_matrix.hpp')
-rw-r--r-- | src/engine/graphics/string_matrix.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/graphics/string_matrix.hpp b/src/engine/graphics/string_matrix.hpp index 540d63b..40fbb11 100644 --- a/src/engine/graphics/string_matrix.hpp +++ b/src/engine/graphics/string_matrix.hpp @@ -19,21 +19,21 @@ public: * * @param bounds The bounds of the matrix */ - explicit StringMatrix(const Bounds &bounds); + explicit StringMatrix(const Bounds &bounds) noexcept; /** * Fills the matrix with a element. * * @param element A element */ - void fill(std::string_view element) override; + void fill(std::string_view element) noexcept override; /** * Returns a element of the matrix. * * @param pos The position of a element */ - [[nodiscard]] std::string_view get(const Vector2 &pos) const override; + [[nodiscard]] std::string_view get(const Vector2 &pos) const noexcept override; /** * Sets a element of the matrix. @@ -41,17 +41,17 @@ public: * @param pos The position of a element * @param element A new element */ - void set(const Vector2 &pos, std::string_view element) override; + void set(const Vector2 &pos, std::string_view element) noexcept override; /** * Returns the number of rows the matrix has. */ - [[nodiscard]] uint32_t rows() const override; + [[nodiscard]] uint32_t rows() const noexcept override; /** * Returns the number of columns the matrix has. */ - [[nodiscard]] uint32_t columns() const override; + [[nodiscard]] uint32_t columns() const noexcept override; private: std::vector<std::vector<std::string_view>> _matrix; |