We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f5de76 commit c7b3428Copy full SHA for c7b3428
docopt_value.h
@@ -51,10 +51,10 @@ namespace docopt {
51
explicit operator bool() const { return kind_ != Kind::Empty; }
52
53
// Test the type contained by this value object
54
- bool isBool() const { return kind_==Kind::Bool; }
55
- bool isString() const { return kind_==Kind::String; }
56
- bool isLong() const { return kind_==Kind::Long; }
57
- bool isStringList() const { return kind_==Kind::StringList; }
+ bool isBool() const noexcept { return kind_==Kind::Bool; }
+ bool isString() const noexcept { return kind_==Kind::String; }
+ bool isLong() const noexcept { return kind_==Kind::Long; }
+ bool isStringList() const noexcept { return kind_==Kind::StringList; }
58
59
// Throws std::invalid_argument if the type does not match
60
bool asBool() const;
0 commit comments