[#BloombergLP-ball-AttributeContext-getContext] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AttributeContext.adoc[AttributeContext]::getContext :relfileprefix: ../../../ :mrdocs: Return the address of the current thread's attribute context, if such context exists; otherwise, create an attribute context, install it in thread‐local storage, and return the address of the newly created context. Note that this method can be invoked safely even if the `initialize` class method has not yet been called. == Synopsis Declared in `<ball_attributecontext.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/ball/AttributeContext.adoc[AttributeContext]* getContext(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#