---
name: "std::auto_ptr_ref"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::auto_ptr_ref"
---

# std::auto\_ptr\_ref(3)

## NAME

std::auto\_ptr\_ref\< \_Tp1 \>

## SYNOPSIS

\#include \<memory\>

### Public Member Functions

**auto\_ptr\_ref** (\_Tp1 \*\_\_p)\

### Public Attributes

\_Tp1 \* **\_M\_ptr**\

## Detailed Description

### template\<typename \_Tp1\>

struct std::auto\_ptr\_ref\< \_Tp1 \>"A wrapper class to provide auto\_ptr with reference semantics. For example, an auto\_ptr can be assigned (or constructed from) the result of a function which returns an auto\_ptr by value.

All the auto\_ptr\_ref stuff should happen behind the scenes.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
