Version

menu_open
Wwise SDK 2022.1.12

◆ Deallocate()

template<typename T , typename AllocatorType = ObjectPoolDefaultAllocator<>, typename LockType = ObjectPoolDefaultLockType>
AKRESULT AK::ObjectPool< T, AllocatorType, LockType >::Deallocate ( ValueType data)
inline

Deallocates given pointer. Calling Deallocate when IsEmpty() returns true is undefined behaviour. Calling Deallocate with a pointer that wasn't allocated by this pool is undefined behaviour.

You can define AK_OBJECT_POOL_EXTRA_SAFETY for extra debugging check.

Definition at line 164 of file AkObjectPool.h.

References AK_InvalidParameter, AK_Success, AKASSERT, and AK::ObjectPool< T, AllocatorType, LockType >::DataType::next.


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise