---
name: "std::auto_ptr_ref"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::auto_ptr_ref/3cxx"
---

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

## 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.
