aboutsummaryrefslogtreecommitdiff
path: root/src/argument_parser.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/argument_parser.hpp
parentdbab54ebf134b6ab2cf719d7c26a191fbffeed34 (diff)
perf: add noexcept almost everywhere
Diffstat (limited to 'src/argument_parser.hpp')
-rw-r--r--src/argument_parser.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/argument_parser.hpp b/src/argument_parser.hpp
index 0bcaeb5..c7f33de 100644
--- a/src/argument_parser.hpp
+++ b/src/argument_parser.hpp
@@ -14,13 +14,13 @@ class ArgumentParser
{
public:
explicit ArgumentParser(
- IRandomNumberGeneratorFactory random_number_generator_factory);
+ IRandomNumberGeneratorFactory random_number_generator_factory) noexcept;
- ParsedArguments
- parse(const std::vector<option> &options, const std::string_view &short_options,
- const int &argc,
- char *const *argv) override; // NOLINT(cppcoreguidelines-avoid-c-arrays,
- // modernize-avoid-c-arrays)
+ ParsedArguments parse(
+ const std::vector<option> &options, const std::string_view &short_options,
+ const int &argc,
+ char *const *argv) noexcept override; // NOLINT(cppcoreguidelines-avoid-c-arrays,
+ // modernize-avoid-c-arrays)
private:
IRandomNumberGeneratorFactory _random_number_generator_factory;