std::fpos<State>::state (3) - Linux Manuals
std::fpos<State>::state: std::fpos<State>::state
NAME
std::fpos<State>::state - std::fpos<State>::state
Synopsis
State state() const; (1)
void state( State st ); (2)
Manages the file position state.
1) Returns the value of the file position state
2) Replaces the file position state with the value of st.
For the specializations of std::fpos that are used in the standard library, State is always std::mbstate_t
Parameters
st - new value for the state
Return value
1) the current value of the fpos state
2) (none)
Example
// Run this code
Output:
See also
mbstate_t (class)