class template
std::basic_istringstream
namespace std {
template <class CharT, class Traits = char_traits<CharT>,
class Allocator = allocator<CharT> >
class basic_istringstream : public basic_istream<CharT, Traits>;
using istringstream = basic_istringstream<char>;
using wistringstream = basic_istringstream<wchar_t>;
}
概要
std::basic_istringstream
クラスは、文字列を入力元とするストリームであり、文字列からの読み取り操作ができる。
このクラスは、内部バッファに文字列を保持し、ストリーム操作で文字列の内容を解析することができる。
メンバ関数
非メンバ関数
名前 |
説明 |
対応バージョン |
swap |
2つのオブジェクトを入れ替える |
C++11 |
メンバ型
名前 |
説明 |
対応バージョン |
char_type |
テンプレート仮引数CharT |
|
int_type |
Traits::int_type |
|
pos_type |
Traits::pos_type |
|
off_type |
Traits::off_type |
|
traits_type |
テンプレート仮引数Traits |
|
allocator_type |
テンプレート仮引数Allocator |
|
例
出力
A B C D E F G
参照