You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The binary function object to be converted to a unary function object.
35
35
36
36
*right*\
@@ -39,15 +39,15 @@ The value to which the second argument of the binary function object is to be bo
39
39
*left*\
40
40
The value of the argument that the adapted binary object compares to the fixed value of the second argument.
41
41
42
-
## Return Value
42
+
## Return value
43
43
44
44
The unary function object that results from binding the second argument of the binary function object to the value *right*.
45
45
46
46
## Remarks
47
47
48
-
The class template stores a copy of a binary function object _ *Func* in `op`, and a copy of *right* in `value`. It defines its member function `operator()` as returning **op**(`left`, **value**).
48
+
The class template stores a copy of a binary function object *func* in `op`, and a copy of *right* in `value`. It defines its member function `operator()` as returning `op(left, value)`.
49
49
50
-
If `Func` is an object of type `Operation` and c is a constant, then [bind2nd](../standard-library/functional-functions.md#bind2nd) (`Func`, `c`) is equivalent to the `binder2nd` class constructor `binder2nd`\< **Operation**> (`Func`, `c`) and more convenient.
50
+
If *func* is an object of type `Operation` and c is a constant, then [bind2nd](../standard-library/functional-functions.md#bind2nd)`(func, c)` is equivalent to the `binder2nd` class constructor `binder2nd<Operation>(func, c)`, and more convenient.
Copy file name to clipboardExpand all lines: docs/standard-library/bitset-operators.md
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ A text representation of the bit sequence in `ostr`.
83
83
84
84
The template function overloads `operator<<`, allowing a bitset to be written out without first converting it into a string. The template function effectively executes:
@@ -123,29 +123,27 @@ Reads a string of bit characters into a bitset.
123
123
```
124
124
template <class CharType, class Traits, size_t Bits>
125
125
basic_istream<CharType, Traits>& operator>> (
126
-
basic_istream<CharType, Traits>&
127
-
_Istr,
128
-
bitset<N>&
129
-
right);
126
+
basic_istream<CharType, Traits>& i_str,
127
+
bitset<N>& right);
130
128
```
131
129
132
130
### Parameters
133
131
134
-
*_Istr*\
132
+
*i_str*\
135
133
The string that is entered into the input stream to be inserted into the bitset.
136
134
137
135
*right*\
138
136
The bitset that is receiving the bits from the input stream.
139
137
140
138
### Return Value
141
139
142
-
The template function returns the string *_Istr*.
140
+
The template function returns the string *i_str*.
143
141
144
142
### Remarks
145
143
146
-
The template function overloads `operator>>` to store in the bitset _ *Right* the value bitset(`str`), where `str` is an object of type [basic_string](basic-string-class.md) < **CharType**, **Traits**, **allocator**\< **CharType**> > **&** extracted from *_Istr*.
144
+
The template function overloads `operator>>` to store in the bitset *right* the value `bitset(str)`, where `str` is an object of type [basic_string](basic-string-class.md)`< CharType, Traits, allocator< CharType > >&` extracted from *i_str*.
147
145
148
-
The template function extracts elements from *_Istr* and inserts them into the bitset until:
146
+
The template function extracts elements from *i_str* and inserts them into the bitset until:
149
147
150
148
- All the bit elements have been extracted from the input stream and stored in the bitset.
0 commit comments