---
name: "ACE_Unmanaged_Singleton"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Unmanaged_Singleton"
---

# ACE\_Unmanaged\_Singleton(3)

Same as ACE\_Singleton, except does \_not\_ register with ACE\_Object\_Manager for destruction.

## NAME

ACE\_Unmanaged\_Singleton -  Same as ACE\_Singleton, except does \_not\_ register with ACE\_Object\_Manager for destruction.

## SYNOPSIS

```
#include <ace/Singleton.h>
template<class TYPE, class ACE_LOCK>
class ACE_Unmanaged_Singleton : public ACE_Singleton <TYPE, ACE_LOCK>
{
  public:
    static TYPE *instance (void);
    static void close (void);
    static void dump (void);
  protected:
    ACE_Unmanaged_Singleton (void);
    static ACE_Unmanaged_Singleton<TYPE, ACE_LOCK> *singleton_;
    static ACE_Unmanaged_Singleton<TYPE, ACE_LOCK> *&instance_i (
        void
        );
};
```

## DESCRIPTION

## PUBLIC MEMBERS

```
static TYPE *instance (void);
```

Global access point to the Singleton.

```
static void close (void);
```

Explicitly delete the Singleton instance.

```
static void dump (void);
```

Dump the state of the object.

## PROTECTED MEMBERS

```
ACE_Unmanaged_Singleton (void);
```

Default constructor.

```
static ACE_Unmanaged_Singleton<TYPE, ACE_LOCK> *singleton_;
```

Pointer to the Singleton (ACE\_Cleanup) instance.

```
static ACE_Unmanaged_Singleton<TYPE, ACE_LOCK> *&instance_i (void);
```

Get pointer to the Singleton instance.

## AUTHOR

Tim Harrison (harrison@cs.wustl.edu), Douglas C. Schmidt, Chris Lahey, Rich Christy, and David Levine.

## LIBRARY

ace
