From cd6fbae608ea403710535cd11f87ffd989c2901d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 4 Aug 2017 23:36:35 +0100 Subject: Add missing docs for GlobalStatic --- libadhocutil/globalStatic.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libadhocutil/globalStatic.h b/libadhocutil/globalStatic.h index 544cc1e..d379146 100644 --- a/libadhocutil/globalStatic.h +++ b/libadhocutil/globalStatic.h @@ -2,9 +2,17 @@ #define ADHOCUTIL_GLOBALSTATIC_H namespace AdHoc { + /** + * Wrapper class for initialising/destroying a global static object via + * __attribute__ constructor/destructor. + */ template class GlobalStatic { public: + /** + * Get the contained object. + * @return The object. + */ static Object * get(); private: -- cgit v1.2.3