basic_stringbuf

basic_stringbuf (문자열 버퍼)

std::basic_stringbuf는 문자열을 읽고 쓰는 스트림 버퍼 클래스 템플릿이에요.

출처: cppreference

본문

std::basic_stringbuf는 메모리상의 문자열을 입출력 버퍼로 사용해요.

template< class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT> >
class basic_stringbuf : public std::basic_streambuf<CharT, Traits>;

basic_istringstream/basic_ostringstream이 내부적으로 사용해요.

더 알아보기 (Learn more)

cppreference