Skip to content

Commit

Permalink
fix noexcept description in std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
suomesta committed Mar 20, 2023
1 parent 283ec8d commit e4e068d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion reference/string/basic_string/compare.md
Expand Up @@ -5,7 +5,8 @@
* function[meta id-type]

```cpp
int compare(const basic_string& str) const noexcept; // (1) C++03
int compare(const basic_string& str) const; // (1) C++03
int compare(const basic_string& str) const noexcept; // (1) C++11
constexpr int
compare(const basic_string& str) const noexcept; // (1) C++20

Expand Down
3 changes: 2 additions & 1 deletion reference/string/basic_string/empty.md
Expand Up @@ -5,7 +5,8 @@
* function[meta id-type]

```cpp
bool empty() const noexcept; // C++03
bool empty() const; // C++03
bool empty() const noexcept; // C++11
[[nodiscard]] constexpr bool empty() const noexcept; // C++20
```

Expand Down
4 changes: 2 additions & 2 deletions reference/string/basic_string/op_greater.md
Expand Up @@ -31,11 +31,11 @@ namespace std {
template <class CharT, class Traits, class Allocator>
bool
operator>(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++03
const CharT* rhs); // (3) C++03
template <class CharT, class Traits, class Allocator>
constexpr bool
operator>(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++20
const CharT* rhs); // (3) C++20
}
```
Expand Down
4 changes: 2 additions & 2 deletions reference/string/basic_string/op_greater_equal.md
Expand Up @@ -31,11 +31,11 @@ namespace std {
template <class CharT, class Traits, class Allocator>
bool
operator>=(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++03
const CharT* rhs); // (3) C++03
template <class CharT, class Traits, class Allocator>
constexpr bool
operator>=(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++20
const CharT* rhs); // (3) C++20
}
```
Expand Down
4 changes: 2 additions & 2 deletions reference/string/basic_string/op_less.md
Expand Up @@ -31,11 +31,11 @@ namespace std {
template <class CharT, class Traits, class Allocator>
bool
operator<(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++03
const CharT* rhs); // (3) C++03
template <class CharT, class Traits, class Allocator>
constexpr bool
operator<(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++20
const CharT* rhs); // (3) C++20
}
```
Expand Down
4 changes: 2 additions & 2 deletions reference/string/basic_string/op_less_equal.md
Expand Up @@ -31,11 +31,11 @@ namespace std {
template <class CharT, class Traits, class Allocator>
bool
operator<=(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++03
const CharT* rhs); // (3) C++03
template <class CharT, class Traits, class Allocator>
constexpr bool
operator<=(const basic_string<CharT, Traits, Allocator>& a,
const CharT* rhs) noexcept; // (3) C++20
const CharT* rhs); // (3) C++20
}
```
Expand Down

0 comments on commit e4e068d

Please sign in to comment.