maliput
|
Simple generic implementation of the "Passkey Idiom".
Passkey<T> allows a class to provide method-level friendship to another class. By tagging an otherwise public
method with a Passkey<Other>
parameter, only the class Other
will be able to construct the required passkey and call the method (typically using just {}
to construct the passkey instance at the call site).
#include <include/maliput/common/passkey.h>