---
name: "__gnu_cxx::_Std_pointer_impl"
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/__gnu_cxx::_Std_pointer_impl"
---

# \_\_gnu\_cxx::\_Std\_pointer\_impl(3)

A storage policy for use with \_Pointer\_adapter\<\> which yields a standard pointer.

## NAME

\_\_gnu\_cxx::\_Std\_pointer\_impl\< \_Tp \> - A storage policy for use with \_Pointer\_adapter\<\> which yields a standard pointer.

## SYNOPSIS

\#include \<pointer.h\>

### Public Types

typedef \_Tp **element\_type**\

### Public Member Functions

\_Tp \* **get** () const\
 bool **operator\<** (const **\_Std\_pointer\_impl** &\_\_rarg) const\
 bool **operator==** (const **\_Std\_pointer\_impl** &\_\_rarg) const\
 void **set** (element\_type \*\_\_arg)\

## Detailed Description

### template\<typename \_Tp\>

class \_\_gnu\_cxx::\_Std\_pointer\_impl\< \_Tp \>"A storage policy for use with \_Pointer\_adapter\<\> which yields a standard pointer.

A \_Storage\_policy is required to provide 4 things: 1) A get() API for returning the stored pointer value. 2) An set() API for storing a pointer value. 3) An element\_type typedef to define the type this points to. 4) An operator\<() to support pointer comparison. 5) An operator==() to support pointer comparison.

## Author

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