• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    class template
    <sstream>

    std::basic_stringbuf

    namespace std {
      template <class CharT, class Traits = char_traits<CharT>,
                class Allocator = allocator<CharT> >
      class basic_stringbuf : public basic_streambuf<CharT, Traits>;
    
      using stringbuf  = basic_stringbuf<char>;
      using wstringbuf = basic_stringbuf<wchar_t>;
    }
    

    概要

    文字列を保持するストリームバッファ

    メンバ関数

    名前 説明 対応バージョン
    (constructor) コンストラクタ
    (destructor) デストラクタ
    operator= ムーブ代入 C++11
    swap 値の交換 C++11
    str 文字列オブジェクトの設定・取得
    view 文字列ビューオブジェクトの取得 C++20
    get_allocator アロケータの取得 C++20

    非メンバ関数

    名前 説明 対応バージョン
    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

    参照