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/randomization.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/interfaces/randomization.hpp') diff --git a/src/interfaces/randomization.hpp b/src/interfaces/randomization.hpp index 524069a..f290d5c 100644 --- a/src/interfaces/randomization.hpp +++ b/src/interfaces/randomization.hpp @@ -5,9 +5,9 @@ class ISeedGenerator { public: - virtual ~ISeedGenerator() = default; + virtual ~ISeedGenerator() noexcept = default; - [[nodiscard]] virtual uint32_t random_seed() const = 0; + [[nodiscard]] virtual uint32_t random_seed() const noexcept = 0; }; using ISeedGeneratorFactory = std::shared_ptr (*)(); @@ -18,7 +18,7 @@ using ISeedGeneratorFactory = std::shared_ptr (*)(); class IRandomNumberGenerator { public: - virtual ~IRandomNumberGenerator() = default; + virtual ~IRandomNumberGenerator() noexcept = default; /** * Returns a number in the range of a to b. @@ -27,7 +27,7 @@ public: * @param b A number greater than a */ [[nodiscard]] virtual uint32_t in_range(const uint32_t &a, - const uint32_t &b) const = 0; + const uint32_t &b) const noexcept = 0; }; using IRandomNumberGeneratorFactory = -- cgit v1.2.3-18-g5258