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.

異常安全

強保證:如果丟擲異常,物件將不發生任何更改。

另見