public member function
<string>

std::wstring_convert::state

state_type state() const;
Conversion shift state
Returns the current shift state.

If the object has performed a conversion operation, this is the resulting state of the operation.

参数



返回值

The conversion shift state.
state_type is a member type, defined as an alias of Codecvt::state_type (where Codecvt is the first template parameter of wstring_convert).

数据竞争

The wstring_convert object is accessed.

异常安全

强保证:如果抛出异常,对象将不发生任何更改。

另见