tmp/tmp4q0pofn5/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
### `bitset` constructors <a id="bitset.cons">[[bitset.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr bitset() noexcept;
|
| 5 |
```
|
| 6 |
|
|
@@ -25,13 +25,12 @@ bitset(const basic_string<charT, traits, Allocator>& str,
|
|
| 25 |
typename basic_string<charT, traits, Allocator>::size_type n =
|
| 26 |
basic_string<charT, traits, Allocator>::npos,
|
| 27 |
charT zero = charT('0'), charT one = charT('1'));
|
| 28 |
```
|
| 29 |
|
| 30 |
-
*
|
| 31 |
-
|
| 32 |
-
*Throws:* `out_of_range` if `pos > str.size()`.
|
| 33 |
|
| 34 |
*Effects:* Determines the effective length `rlen` of the initializing
|
| 35 |
string as the smaller of `n` and `str.size() - pos`.
|
| 36 |
|
| 37 |
The function then throws
|
|
@@ -59,11 +58,11 @@ template <class charT>
|
|
| 59 |
const charT* str,
|
| 60 |
typename basic_string<charT>::size_type n = basic_string<charT>::npos,
|
| 61 |
charT zero = charT('0'), charT one = charT('1'));
|
| 62 |
```
|
| 63 |
|
| 64 |
-
*Effects:* Constructs an object of class `bitset<N>` as if by
|
| 65 |
|
| 66 |
``` cpp
|
| 67 |
bitset(
|
| 68 |
n == basic_string<charT>::npos
|
| 69 |
? basic_string<charT>(str)
|
|
|
|
| 1 |
+
#### `bitset` constructors <a id="bitset.cons">[[bitset.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr bitset() noexcept;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 25 |
typename basic_string<charT, traits, Allocator>::size_type n =
|
| 26 |
basic_string<charT, traits, Allocator>::npos,
|
| 27 |
charT zero = charT('0'), charT one = charT('1'));
|
| 28 |
```
|
| 29 |
|
| 30 |
+
*Throws:* `out_of_range` if `pos > str.size()` or `invalid_argument` if
|
| 31 |
+
an invalid character is found (see below).
|
|
|
|
| 32 |
|
| 33 |
*Effects:* Determines the effective length `rlen` of the initializing
|
| 34 |
string as the smaller of `n` and `str.size() - pos`.
|
| 35 |
|
| 36 |
The function then throws
|
|
|
|
| 58 |
const charT* str,
|
| 59 |
typename basic_string<charT>::size_type n = basic_string<charT>::npos,
|
| 60 |
charT zero = charT('0'), charT one = charT('1'));
|
| 61 |
```
|
| 62 |
|
| 63 |
+
*Effects:* Constructs an object of class `bitset<N>` as if by:
|
| 64 |
|
| 65 |
``` cpp
|
| 66 |
bitset(
|
| 67 |
n == basic_string<charT>::npos
|
| 68 |
? basic_string<charT>(str)
|