std::basic_fstream<CharT,Traits>::rdbuf - cppreference.com

From cppreference.com

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