#include <Activity.h>
Public Member Functions | |
DeclareActivity ()=delete | |
Push the argument Activity onto the current thread's Activity stack in the constructor, and pop it off in the destructor.
Definition at line 141 of file Activity.h.
|
delete |
The caller must always declare an Activity object whose address can be taken, and whose lifetime exceeds that of the DeclareActivity object.
This is allowed to facilitate examples like: \code DeclareActivity declareActivity { flag? &kSomeActivity_? nullptr }; // so we only conditionally declare the activity \endcode I considered using optional<ACTIVITY> - but tricky since we pass in pointer - and really not much point. This has practically zero overhead, and is easy enough to understand and use.