Agora RTC Objective-C API Reference Refactor

AutoPtr< T > Class Template Reference

Inherited by CopyableAutoPtr< T >.

## Member Typedef Documentation

## ◆ value_type

typedef T value_type
| protected

## ◆ pointer_type

typedef T* pointer_type
| protected

## Constructor & Destructor Documentation

## ◆ AutoPtr() [1/2]

AutoPtr | ( | pointer_type | p = `NULL` | ) |
| inlineexplicit

## ◆ ~AutoPtr()

~AutoPtr | ( |  | ) |
| inline

## ◆ AutoPtr() [2/2]

AutoPtr | ( | const AutoPtr< T > & |  | ) |
| private

## Member Function Documentation

## ◆ operator bool()

operator bool | ( |  | ) | const
| inline

## ◆ operator*()

value_type& operator* | ( |  | ) | const
| inline

## ◆ operator->()

pointer_type operator-> | ( |  | ) | const
| inline

## ◆ get()

pointer_type get | ( |  | ) | const
| inline

## ◆ release()

pointer_type release | ( |  | ) |
| inline

## ◆ reset()

void reset | ( | pointer_type | ptr = `NULL` | ) |
| inline

## ◆ queryInterface()

bool queryInterface | ( | C1 * | c,
|  | C2 | iid
| ) |  |
| inline

## ◆ operator=()

AutoPtr& operator= | ( | const AutoPtr< T > & |  | ) |
| private

## Field Documentation

## ◆ ptr_

pointer_type ptr_
| private