We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8198fbe commit 1d98984Copy full SHA for 1d98984
libcxx/test/std/utilities/optional/optional.iterator/end.pass.cpp
@@ -24,8 +24,8 @@ constexpr bool test() {
24
constexpr std::optional<T> unengaged2{std::nullopt};
25
26
{ // end() is marked noexcept
27
- assert(noexcept(opt.end()));
28
- assert(noexcept(nonconst_opt.end()));
+ assert(noexcept(unengaged.end()));
+ assert(noexcept(unengaged2.end()));
29
}
30
31
{ // end() == begin() and end() == end() if the optional is unengaged
0 commit comments