fstream - STL C++

basic_fstream<C, T>::pos_type

Declaration

typedef typename T::pos_type basic_fstream<C,T>::pos_type;

Description

This is a type definition of the data type pos_type for the basic_fstream class template.

Header Include

#include <fstream>

Example

#include <iostream>
#include <fstream>

int main() {
	using namespace std;

	cout << "Typedefs for basic_fstream<char> :" << endl << endl;
	cout << "char_type = " <<
		typeid(basic_fstream<char>::char_type).name() << endl;
	cout << "int_type = " <<
		typeid(basic_fstream<char>::int_type).name() << endl;
	cout << "off_type = " <<
		typeid(basic_fstream<char>::off_type).name() << endl;
	cout << "pos_type = " <<
		typeid(basic_fstream<char>::pos_type).name() << endl;
	cout << "traits_type = " <<
		typeid(basic_fstream<char>::traits_type).name() << endl;

	// Keep the window open
	cin.get();
	return 0;
}

Output

basic_fstream<C, T>::pos_type Output
 

© 2007–2024 XoaX.net LLC. All rights reserved.