tmp/tmpd5fb4vep/{from.md → to.md}
RENAMED
|
@@ -11,11 +11,12 @@ namespace std {
|
|
| 11 |
template<class Codecvt, class Elem = wchar_t, class Tr = char_traits<Elem>>
|
| 12 |
class wbuffer_convert : public basic_streambuf<Elem, Tr> {
|
| 13 |
public:
|
| 14 |
using state_type = typename Codecvt::state_type;
|
| 15 |
|
| 16 |
-
|
|
|
|
| 17 |
Codecvt* pcvt = new Codecvt,
|
| 18 |
state_type state = state_type());
|
| 19 |
|
| 20 |
~wbuffer_convert();
|
| 21 |
|
|
@@ -76,11 +77,11 @@ using state_type = typename Codecvt::state_type;
|
|
| 76 |
|
| 77 |
The type shall be a synonym for `Codecvt::state_type`.
|
| 78 |
|
| 79 |
``` cpp
|
| 80 |
explicit wbuffer_convert(
|
| 81 |
-
streambuf* bytebuf
|
| 82 |
Codecvt* pcvt = new Codecvt,
|
| 83 |
state_type state = state_type());
|
| 84 |
```
|
| 85 |
|
| 86 |
*Requires:* `pcvt != nullptr`.
|
|
@@ -93,90 +94,5 @@ initializes `cvtstate` to `state`.
|
|
| 93 |
~wbuffer_convert();
|
| 94 |
```
|
| 95 |
|
| 96 |
*Effects:* The destructor shall delete `cvtptr`.
|
| 97 |
|
| 98 |
-
<!-- Link reference definitions -->
|
| 99 |
-
[basic.align]: basic.md#basic.align
|
| 100 |
-
[basic.scope.namespace]: basic.md#basic.scope.namespace
|
| 101 |
-
[basic.types]: basic.md#basic.types
|
| 102 |
-
[class.copy]: special.md#class.copy
|
| 103 |
-
[class.dtor]: special.md#class.dtor
|
| 104 |
-
[cmath.syn]: numerics.md#cmath.syn
|
| 105 |
-
[complex.syn]: numerics.md#complex.syn
|
| 106 |
-
[containers]: containers.md#containers
|
| 107 |
-
[cstddef.syn]: language.md#cstddef.syn
|
| 108 |
-
[dcl.attr.deprecated]: dcl.md#dcl.attr.deprecated
|
| 109 |
-
[dcl.fct.def]: dcl.md#dcl.fct.def
|
| 110 |
-
[default.allocator]: utilities.md#default.allocator
|
| 111 |
-
[depr]: #depr
|
| 112 |
-
[depr.c.headers]: #depr.c.headers
|
| 113 |
-
[depr.ccomplex.syn]: #depr.ccomplex.syn
|
| 114 |
-
[depr.codecvt.syn]: #depr.codecvt.syn
|
| 115 |
-
[depr.conversions]: #depr.conversions
|
| 116 |
-
[depr.conversions.buffer]: #depr.conversions.buffer
|
| 117 |
-
[depr.conversions.string]: #depr.conversions.string
|
| 118 |
-
[depr.cpp.headers]: #depr.cpp.headers
|
| 119 |
-
[depr.cstdalign.syn]: #depr.cstdalign.syn
|
| 120 |
-
[depr.cstdbool.syn]: #depr.cstdbool.syn
|
| 121 |
-
[depr.ctgmath.syn]: #depr.ctgmath.syn
|
| 122 |
-
[depr.default.allocator]: #depr.default.allocator
|
| 123 |
-
[depr.except.spec]: #depr.except.spec
|
| 124 |
-
[depr.func.adaptor.binding]: #depr.func.adaptor.binding
|
| 125 |
-
[depr.func.adaptor.typedefs]: #depr.func.adaptor.typedefs
|
| 126 |
-
[depr.impldec]: #depr.impldec
|
| 127 |
-
[depr.istrstream]: #depr.istrstream
|
| 128 |
-
[depr.istrstream.cons]: #depr.istrstream.cons
|
| 129 |
-
[depr.istrstream.members]: #depr.istrstream.members
|
| 130 |
-
[depr.iterator.basic]: #depr.iterator.basic
|
| 131 |
-
[depr.iterator.primitives]: #depr.iterator.primitives
|
| 132 |
-
[depr.locale.stdcvt]: #depr.locale.stdcvt
|
| 133 |
-
[depr.locale.stdcvt.req]: #depr.locale.stdcvt.req
|
| 134 |
-
[depr.meta.types]: #depr.meta.types
|
| 135 |
-
[depr.negators]: #depr.negators
|
| 136 |
-
[depr.ostrstream]: #depr.ostrstream
|
| 137 |
-
[depr.ostrstream.cons]: #depr.ostrstream.cons
|
| 138 |
-
[depr.ostrstream.members]: #depr.ostrstream.members
|
| 139 |
-
[depr.static_constexpr]: #depr.static_constexpr
|
| 140 |
-
[depr.storage.iterator]: #depr.storage.iterator
|
| 141 |
-
[depr.str.strstreams]: #depr.str.strstreams
|
| 142 |
-
[depr.strstream]: #depr.strstream
|
| 143 |
-
[depr.strstream.cons]: #depr.strstream.cons
|
| 144 |
-
[depr.strstream.dest]: #depr.strstream.dest
|
| 145 |
-
[depr.strstream.oper]: #depr.strstream.oper
|
| 146 |
-
[depr.strstreambuf]: #depr.strstreambuf
|
| 147 |
-
[depr.strstreambuf.cons]: #depr.strstreambuf.cons
|
| 148 |
-
[depr.strstreambuf.members]: #depr.strstreambuf.members
|
| 149 |
-
[depr.strstreambuf.virtuals]: #depr.strstreambuf.virtuals
|
| 150 |
-
[depr.temporary.buffer]: #depr.temporary.buffer
|
| 151 |
-
[depr.uncaught]: #depr.uncaught
|
| 152 |
-
[depr.util.smartptr.shared.obs]: #depr.util.smartptr.shared.obs
|
| 153 |
-
[depr.weak.result_type]: #depr.weak.result_type
|
| 154 |
-
[expr.unary.op]: expr.md#expr.unary.op
|
| 155 |
-
[func.bind.bind]: utilities.md#func.bind.bind
|
| 156 |
-
[func.def]: utilities.md#func.def
|
| 157 |
-
[function.objects]: utilities.md#function.objects
|
| 158 |
-
[meta.rqmts]: utilities.md#meta.rqmts
|
| 159 |
-
[namespace.udecl]: dcl.md#namespace.udecl
|
| 160 |
-
[new.delete]: language.md#new.delete
|
| 161 |
-
[output.iterators]: iterators.md#output.iterators
|
| 162 |
-
[sf.cmath]: numerics.md#sf.cmath
|
| 163 |
-
[support.types.byteops]: language.md#support.types.byteops
|
| 164 |
-
[tab:future.c.headers]: #tab:future.c.headers
|
| 165 |
-
[tab:future.newoff.values]: #tab:future.newoff.values
|
| 166 |
-
[tab:future.seekoff.positioning]: #tab:future.seekoff.positioning
|
| 167 |
-
[tab:future.strstreambuf.effects]: #tab:future.strstreambuf.effects
|
| 168 |
-
[tab:future.strstreambuf1.effects]: #tab:future.strstreambuf1.effects
|
| 169 |
-
[tab:future.strstreambuf2.effects]: #tab:future.strstreambuf2.effects
|
| 170 |
-
[temp.deduct]: temp.md#temp.deduct
|
| 171 |
-
[unord.hash]: utilities.md#unord.hash
|
| 172 |
-
[util.smartptr.shared]: utilities.md#util.smartptr.shared
|
| 173 |
-
|
| 174 |
-
[^1]: The function signature `strlen(const char*)` is declared in
|
| 175 |
-
`<cstring>` ([[cstring.syn]]). The macro `INT_MAX` is defined in
|
| 176 |
-
`<climits>` ([[climits.syn]]).
|
| 177 |
-
|
| 178 |
-
[^2]: An implementation should consider `alsize` in making this
|
| 179 |
-
decision.
|
| 180 |
-
|
| 181 |
-
[^3]: The function signature `strlen(const char*)` is declared in
|
| 182 |
-
`<cstring>` ([[cstring.syn]]).
|
|
|
|
| 11 |
template<class Codecvt, class Elem = wchar_t, class Tr = char_traits<Elem>>
|
| 12 |
class wbuffer_convert : public basic_streambuf<Elem, Tr> {
|
| 13 |
public:
|
| 14 |
using state_type = typename Codecvt::state_type;
|
| 15 |
|
| 16 |
+
wbuffer_convert() : wbuffer_convert(nullptr) {}
|
| 17 |
+
explicit wbuffer_convert(streambuf* bytebuf,
|
| 18 |
Codecvt* pcvt = new Codecvt,
|
| 19 |
state_type state = state_type());
|
| 20 |
|
| 21 |
~wbuffer_convert();
|
| 22 |
|
|
|
|
| 77 |
|
| 78 |
The type shall be a synonym for `Codecvt::state_type`.
|
| 79 |
|
| 80 |
``` cpp
|
| 81 |
explicit wbuffer_convert(
|
| 82 |
+
streambuf* bytebuf,
|
| 83 |
Codecvt* pcvt = new Codecvt,
|
| 84 |
state_type state = state_type());
|
| 85 |
```
|
| 86 |
|
| 87 |
*Requires:* `pcvt != nullptr`.
|
|
|
|
| 94 |
~wbuffer_convert();
|
| 95 |
```
|
| 96 |
|
| 97 |
*Effects:* The destructor shall delete `cvtptr`.
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|