CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ReferenceCountable Concept Reference

A concept type that checks if a given type T has a CountedPtrTrait specialization that allows it to be used with RC. More...

#include <CeresEngine/Foundation/SmartPtr.hpp>

Concept definition

template<typename T>
concept CeresEngine::ReferenceCountable = requires(T* ptr) {
CountedPtrTrait<T>::retain(ptr);
CountedPtrTrait<T>::release(ptr);
}
A concept type that checks if a given type T has a CountedPtrTrait specialization that allows it to b...
Definition SmartPtr.hpp:115

Detailed Description

A concept type that checks if a given type T has a CountedPtrTrait specialization that allows it to be used with RC.

Template Parameters
Tthe type to be checked against