---
name: "std::basic_string_Rep"
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::basic_string_Rep"
---

# std::basic\_string\_Rep(3)

## NAME

std::basic\_string::Rep -

## SYNOPSIS

### Public Types

typedef Alloc::template rebind\< char \>::other **Raw\_bytes\_alloc**\

### Public Member Functions

bool **M\_is\_leaked** () const\
 bool **M\_is\_shared** () const\
 void **M\_set\_leaked** ()\
 void **M\_set\_sharable** ()\
 CharT \* **M\_refdata** ()  throw ()\
 CharT & **operator\[\]** (size\_t s)  throw ()\
 CharT \* **M\_grab** (const Alloc &alloc1, const Alloc &alloc2)\
 void **M\_dispose** (const Alloc &a)\
 void **M\_destroy** (const Alloc &)  throw ()\
 CharT \* **M\_refcopy** ()  throw ()\
 CharT \* **M\_clone** (const Alloc &, **size\_type** \_\_res=0)\

### Static Public Member Functions

static **Rep** \* **S\_create** (size\_t, const Alloc &)\

### Public Attributes

**size\_type** **M\_length**\
 **size\_type** **M\_capacity**\
 Atomic\_word **M\_references**\

### Static Public Attributes

static const **size\_type** **S\_max\_size**\
 static const CharT **S\_terminal**\

## Detailed Description

### template\<typename CharT, typename Traits, typename Alloc\> struct std::basic\_string\< CharT, Traits, Alloc \>::Rep

Definition at line 143 of file basic\_string.h.

## Author

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