|
Bifrost SDK
Bifrost SDK documentation
|
Flag that may be passed when creating a PtrGuard. More...
#include <Ptr.h>
Flag that may be passed when creating a PtrGuard.
This flag informs the PtrGuard that the Ptr for which the guard is created is known to be uniquely owned at compile time (i.e. ptr.unique() == true). This can be useful to provide the functionality of the PtrGuard without paying the cost of checking uniqueness, when it is known to be unique in a specific usage scenario. It will also assert if the ownership is not unique, rather than "silently" making a copy of the pointed object.