---
name: "ost_StringObject"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ost_StringObject"
---

# ost\_StringObject(3)

The StringObject class is used to derive subclasses that use the String managed memory pool for all space allocations by overriding new and delete operators.

## NAME

ost::StringObject - The **StringObject** class is used to derive subclasses that use the **String** managed memory pool for all space allocations by overriding new and delete operators.

## SYNOPSIS

`#include <string.h>`

### Public Member Functions

void \* **operator new** (size\_t size) **NEW\_THROWS**\
 Create a new object in string managed space.  void **operator delete** (void \*obj)\
 Delete object from string managed space.

## Detailed Description

The **StringObject** class is used to derive subclasses that use the **String** managed memory pool for all space allocations by overriding new and delete operators.

Due to size limits, **StringObject** should not hold very large objects.

**Author**

David Sugar dyfet@ostel.com

Objects managed in reusable **String** memory pools

## Member Function Documentation

### void ost::StringObject::operator delete (void \* obj)

Delete object from string managed space.

### void\* ost::StringObject::operator new (size\_t size)

Create a new object in string managed space.

## Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.
