---
name: "std::pthread_allocator"
section: "3"
platform: "linux"
package: "libstdc++5-3.3-doc"
version: "1:3.3.6-15"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/std::pthread_allocator"
---

# std::pthread\_allocator(3)

## NAME

std::pthread\_allocator -

## SYNOPSIS

### Public Types

typedef size\_t **size\_type**\
 typedef ptrdiff\_t **difference\_type**\
 typedef Type \* **pointer**\
 typedef const Type \* **const\_pointer**\
 typedef Type & **reference**\
 typedef const Type & **const\_reference**\
 typedef Type **value\_type**\

### Public Member Functions

**pthread\_allocator** ()  throw ()\
 **pthread\_allocator** (const **pthread\_allocator** &a)  throw ()\
 template\<class OtherType\> **pthread\_allocator** (const **pthread\_allocator**\< OtherType \> &)  throw ()\
 **~pthread\_allocator** ()  throw ()\
 **pointer** **address** (**reference** x) const \
 **const\_pointer** **address** (**const\_reference** x) const\
 Type \* **allocate** (**size\_type** n, const void \*=0)\
 void **deallocate** (**pointer** \_\_p, **size\_type** n)\
 **size\_type** **max\_size** () const  throw ()\
 void **construct** (**pointer** \_\_p, const Type &\_\_val)\
 void **destroy** (**pointer** \_p)\

### Private Types

typedef **pthread\_alloc** **SAlloc**\

### Classes

struct **rebind**\

## Detailed Description

### template\<class Type\> class std::pthread\_allocator\< Type \>

Definition at line 415 of file pthread\_allocimpl.h.

## Author

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