23#include "platform/mbed_assert.h"
24#include "platform/mbed_atomic.h"
109 core_util_atomic_store(&_ptr, p);
175#if __cplusplus >= 201103L
177 alignas(T)
mutable char _data[
sizeof(T)];
180 mutable uint64_t _data[(
sizeof(T) +
sizeof(uint64_t) - 1) /
sizeof(uint64_t)];
Utility class for creating and using a singleton.
T & operator*() const
Get a reference to the underlying singleton.
void destroy()
Destroy the underlying singleton.
T * get_no_init() const
Get a pointer to the underlying singleton.
T * operator->() const
Get a pointer to the underlying singleton.
T * get() const
Get a pointer to the underlying singleton.