@@ -40,7 +40,7 @@ class path {
40
40
path (path&& other) noexcept = default ;
41
41
path& operator =(path&& other) noexcept = default ;
42
42
43
- void clear () {
43
+ void clear () noexcept {
44
44
path_.clear ();
45
45
}
46
46
@@ -66,11 +66,11 @@ class path {
66
66
auto generic_u16string () const { return path_.generic_u16string (); }
67
67
auto generic_u32string () const { return path_.generic_u32string (); }
68
68
auto string () const { return path_.string (); }
69
- auto native () const { return path_.native (); }
69
+ auto native () const noexcept { return path_.native (); }
70
70
auto u8string () const { return path_.u8string (); }
71
71
auto u16string () const { return path_.u16string (); }
72
72
auto u32string () const { return path_.u32string (); }
73
- const auto c_str () const { return path_.c_str (); }
73
+ const auto c_str () const noexcept { return path_.c_str (); }
74
74
75
75
const std::filesystem::path& native_path () const { return path_; }
76
76
@@ -115,6 +115,7 @@ class path {
115
115
template <typename T> bool operator <=(T&& other) const noexcept { return path_ <= std::forward<T>(other); }
116
116
template <typename T> bool operator >(T&& other) const noexcept { return path_ > std::forward<T>(other); }
117
117
template <typename T> bool operator >=(T&& other) const noexcept { return path_ >= std::forward<T>(other); }
118
+
118
119
bool operator !() const noexcept { return empty (); }
119
120
120
121
template <typename ... Args>
@@ -132,7 +133,7 @@ class path {
132
133
}
133
134
134
135
template <typename T>
135
- path& assign (T&& p) {
136
+ path& assign (T&& p) noexcept {
136
137
path_.assign (std::move (std::forward<T>(p)));
137
138
return *this ;
138
139
}
0 commit comments