Skip to content

Commit f4d983f

Browse files
authored
Add noexcept and constexpr to wording.
1 parent 39795c6 commit f4d983f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

DRAFT.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,13 +595,15 @@ the allocators are not swapped.
595595
596596
#### X.Y.8 Member access [protocol.member.access]
597597
598-
1. For each public non-static, non-template member function _f_ declared in _I_ with name _N_, return type _R_, parameter-type-list _P_, cv-qualifier-seq _cv_, and ref-qualifier _ref_, `protocol` shall contain a public non-virtual member function with the same name _N_, return type _R_, parameter-type-list _P_, and identical cv-qualifiers and ref-qualifiers.
598+
1. For each public non-static, non-template member function _f_ declared in _I_ with name _N_, return type _R_, parameter-type-list _P_, cv-qualifier-seq _cv_, ref-qualifier _ref_, _noexcept-specifier_ _S_, and _constexpr-specifier_ _C_, `protocol` shall contain a public non-virtual member function with the same name _N_, return type _R_, parameter-type-list _P_, and identical cv-qualifiers, ref-qualifiers, _noexcept-specifier_, and _constexpr-specifier_.
599599
600-
2. _Effects_: If `*this` is not valueless, calls the corresponding member function of the owned object with the provided arguments. If `*this` is valueless, the behavior is undefined.
600+
2. _Preconditions_: `*this` is not valueless.
601601
602-
3. _Returns_: The value returned from the called function, if any.
602+
3. _Effects_: Calls the corresponding member function of the owned object with the provided arguments.
603603
604-
4. _Throws_: Any exception thrown by the called function.
604+
4. _Returns_: The value returned from the called function, if any.
605+
606+
5. _Throws_: Any exception thrown by the called function.
605607
606608
<!--
607609
```cpp

0 commit comments

Comments
 (0)