GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::fpos::state(3) C++ Standard Libary std::fpos::state(3)

std::fpos::state - std::fpos::state


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


st - new value for the state


1) the current value of the fpos state
2) (none)

// Run this code


#include <iostream>
#include <sstream>
#include <cwchar>


int main()
{
std::istringstream s("test");
std::mbstate_t st = s.tellg().state();


if(std::mbsinit(&st))
std::cout << "The stream is in the initial shift state\n";
}


The stream is in the initial shift state


conversion state information necessary to iterate multibyte character
mbstate_t strings
(class)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.