[#BloombergLP-bslmt-OnceGuard-enter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/OnceGuard.adoc[OnceGuard]::enter :relfileprefix: ../../../ :mrdocs: Call `enter` on the associated `Once` object and return the result. If `Once::enter` returns `true`, set this object into the "in‐progress" state. The behavior is undefined unless this object has been associated with a `Once` object, either in the constructor or using `setOnce`, or if this object is already in the "in‐progress" state. == Synopsis Declared in `<bslmt_once.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool enter(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#