Namespaces
Variants

std::basic_ifstream<CharT,Traits>::rdbuf

From cppreference.com
 
 
Input/output library
I/O manipulators
Print functions (C++23)
C-style I/O
Buffers
(deprecated in C++98)(removed in C++26)
Streams
Abstractions
File I/O
String I/O
Array I/O
(deprecated in C++98)(removed in C++26)
(deprecated in C++98)(removed in C++26)
(deprecated in C++98)(removed in C++26)
Synchronized Output
Types
Error category interface
(C++11)
 
 
std::basic_filebuf<CharT, Traits>* rdbuf() const;
(since C++11)

Returns pointer to the underlying raw file device object.

Parameters

(none)

Return value

Pointer to the underlying raw file device.

Example