|
mimic++ v9.2.1
|
A helper type that enables fine-grained access control to specific functions without using friend declarations. More...
#include <PassKey.hpp>
A helper type that enables fine-grained access control to specific functions without using friend declarations.
| Trusted | The type that is allowed to create this key and therefore granted access. |
This type provides a way to restrict access to certain functions by requiring a special key object. Only the designated Trusted type can construct this key, allowing it to call functions that accept the key as a parameter. This avoids broad friendship declarations and keeps access control explicit and localized.