std::istrstream:: rdbuf
From cppreference.net
<
cpp
|
io
|
istrstream
C++
Input/output library
| I/O manipulators | ||||
| Print functions (C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(C++20)
|
||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
| Synchronized Output | ||||
|
(C++20)
|
||||
| Types | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
std::istrstream
| Member functions | ||||
|
istrstream::rdbuf
|
||||
|
strstreambuf
*
rdbuf
(
)
const
;
|
(C++98에서 사용 중단됨)
(C++26에서 제거됨) |
|
연관된 std:: strstreambuf 에 대한 포인터를 반환합니다(멤버 함수의 const 한정자가 있음에도 불구하고 constness를 제거하고 캐스팅합니다).
매개변수
(없음)
반환값
연결된 std:: strstreambuf 에 대한 포인터로, constness가 제거된 상태입니다.
예제
이 코드 실행
#include <strstream> int main() { const std::istrstream buf("example"); std::strstreambuf* ptr = buf.rdbuf(); }