efined in header ` [ <fstream> ](/w/cpp/header/fstream "cpp/header/fstream")
`  
[ std::filebuf ](/w/cpp/io/basic_filebuf "cpp/io/basic filebuf") |  [ std::  basic_filebuf  ](http://en.cppreference.com/w/cpp/io/basic_filebuf) < char  >  
[ std::wfilebuf ](/w/cpp/io/basic_filebuf "cpp/io/basic filebuf") |  [ std::  basic_filebuf  ](http://en.cppreference.com/w/cpp/io/basic_filebuf) < wchar_t  >  
[ std::ifstream ](/w/cpp/io/basic_ifstream "cpp/io/basic ifstream") |  [ std::  basic_ifstream  ](http://en.cppreference.com/w/cpp/io/basic_ifstream) < char  >  
[ std::wifstream ](/w/cpp/io/basic_ifstream "cpp/io/basic ifstream") |  [ std::  basic_ifstream  ](http://en.cppreference.com/w/cpp/io/basic_ifstream) < wchar_t  >  
[ std::ofstream ](/w/cpp/io/basic_ofstream "cpp/io/basic ofstream") |  [ std::  basic_ofstream  ](http://en.cppreference.com/w/cpp/io/basic_ofstream) < char  >  
[ std::wofstream ](/w/cpp/io/basic_ofstream "cpp/io/basic ofstream") |  [ std::  basic_ofstream  ](http://en.cppreference.com/w/cpp/io/basic_ofstream) < wchar_t  >  
[ std::fstream ](/w/cpp/io/basic_fstream "cpp/io/basic fstream") |  [ std::  basic_fstream  ](http://en.cppreference.com/w/cpp/io/basic_fstream) < char  >  
[ std::wfstream ](/w/cpp/io/basic_fstream "cpp/io/basic fstream") |  [ std::  basic_fstream  ](http://en.cppreference.com/w/cpp/io/basic_fstream) < wchar_t  >  
Defined in header ` [ <sstream> ](/w/cpp/header/sstream "cpp/header/sstream")
`  
[ std::stringbuf ](/w/cpp/io/basic_stringbuf "cpp/io/basic stringbuf") |  [ std::  basic_stringbuf  ](http://en.cppreference.com/w/cpp/io/basic_stringbuf) < char  >  
[ std::wstringbuf ](/w/cpp/io/basic_stringbuf "cpp/io/basic stringbuf") |  [ std::  basic_stringbuf  ](http://en.cppreference.com/w/cpp/io/basic_stringbuf) < wchar_t  >  
[ std::istringstream ](/w/cpp/io/basic_istringstream "cpp/io/basic istringstream") |  [ std::  basic_istringstream  ](http://en.cppreference.com/w/cpp/io/basic_istringstream) < char  >  
[ std::wistringstream ](/w/cpp/io/basic_istringstream "cpp/io/basic istringstream") |  [ std::  basic_istringstream  ](http://en.cppreference.com/w/cpp/io/basic_istringstream) < wchar_t  >  
[ std::ostringstream ](/w/cpp/io/basic_ostringstream "cpp/io/basic ostringstream") |  [ std::  basic_ostringstream  ](http://en.cppreference.com/w/cpp/io/basic_ostringstream) < char  >  
[ std::wostringstream ](/w/cpp/io/basic_ostringstream "cpp/io/basic ostringstream") |  [ std::  basic_ostringstream  ](http://en.cppreference.com/w/cpp/io/basic_ostringstream) < wchar_t  >  
[ std::stringstream ](/w/cpp/io/basic_stringstream "cpp/io/basic stringstream") |  [ std::  basic_stringstream  ](http://en.cppreference.com/w/cpp/io/basic_stringstream) < char  >  
[ std::wstringstream ](/w/cpp/io/basic_stringstream "cpp/io/basic stringstream") |  [ std::  basic_stringstream  ](http://en.cppreference.com/w/cpp/io/basic_stringstream) < wchar_t  >  
Defined in header ` [ <spanstream> ](/w/cpp/header/spanstream
"cpp/header/spanstream") `  
std::spanbuf  (C++23)  |  [ std::  basic_spanbuf  ](http://en.cppreference.com/w/cpp/io/basic_spanbuf) < char  >  
std::wspanbuf  (C++23)  |  [ std::  basic_spanbuf  ](http://en.cppreference.com/w/cpp/io/basic_spanbuf) < wchar_t  >  
std::ispanstream  (C++23)  |  [ std::  basic_ispanstream  ](http://en.cppreference.com/w/cpp/io/basic_ispanstream) < char  >  
std::wispanstream  (C++23)  |  [ std::  basic_ispanstream  ](http://en.cppreference.com/w/cpp/io/basic_ispanstream) < wchar_t  >  
std::ospanstream  (C++23)  |  [ std::  basic_ospanstream  ](http://en.cppreference.com/w/cpp/io/basic_ospanstream) < char  >  
std::wospanstream  (C++23)  |  [ std::  basic_ospanstream  ](http://en.cppreference.com/w/cpp/io/basic_ospanstream) < wchar_t  >  
std::spanstream  (C++23)  |  [ std::  basic_spanstream  ](http://en.cppreference.com/w/cpp/io/basic_spanstream) < char  >  
std::wspanstream  (C++23)  |  [ std::  basic_spanstream  ](http://en.cppreference.com/w/cpp/io/basic_spanstream) < wch