# std::basic_ofstream<CharT,Traits>::rdbuf

> C++ Atlas: `cppatlas.com/w/cpp/io/basic_ofstream/rdbuf` | Source: https://en.cppreference.com/w/cpp/io/basic_ofstream/rdbuf | Domain: Input/output | Standards: C++11

Returns pointer to the underlying raw file device object.

## Official Specification Summary (cppreference)

```cpp
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

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/io/basic_ofstream/rdbuf (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.