---
name: "__gnu_cxx::array_allocator"
section: "3"
platform: "linux"
package: "libstdc++6-4.1-doc"
version: "4.1.2-25"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_cxx::array_allocator"
---

# \_\_gnu\_cxx::array\_allocator(3)

## NAME

\_\_gnu\_cxx::array\_allocator -

## SYNOPSIS

Inherits **\_\_gnu\_cxx::array\_allocator\_base\< \_Tp \>**.

## Detailed Description

### template\<typename \_Tp, typename \_Array = std::tr1::array\<\_Tp, 1\>\> class \_\_gnu\_cxx::array\_allocator\< \_Tp, \_Array \>

Definition at line 88 of file array\_allocator.h.

### Public Types

typedef \_Array **array\_type**\
 typedef const \_Tp \* **const\_pointer**\
 typedef const \_Tp & **const\_reference**\
 typedef ptrdiff\_t **difference\_type**\
 typedef \_Tp \* **pointer**\
 typedef \_Tp & **reference**\
 typedef size\_t **size\_type**\
 typedef \_Tp **value\_type**\

### Public Member Functions

const\_pointer **address** (const\_reference \_\_x) const \
 pointer **address** (reference \_\_x) const \
 pointer **allocate** (size\_type \_\_n, const void \*=0)\
 template\<typename \_Tp1, typename \_Array1\> **array\_allocator** (const **array\_allocator**\< \_Tp1, \_Array1 \> &)  throw ()\
 **array\_allocator** (const **array\_allocator** &\_\_o)  throw ()\
 **array\_allocator** (array\_type \*\_\_array=NULL)  throw ()\
 void **construct** (pointer \_\_p, const \_Tp &\_\_val)\
 void **deallocate** (pointer, size\_type)\
 void **destroy** (pointer \_\_p)\
 size\_type **max\_size** () const   throw ()\

### Public Attributes

array\_type \* **\_M\_array**\

## Author

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