Bifrost SDK
Bifrost SDK documentation
Amino::PtrGuardUniqueFlag Struct Reference

Flag that may be passed when creating a PtrGuard. More...

#include <Ptr.h>

Detailed Description

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.

Definition at line 918 of file Ptr.h.