[#BloombergLP-bslma-ManagedPtr-0fa-2conversion-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]::operator xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[BoolType] :relfileprefix: ../../../ :mrdocs: Return a value of "unspecified bool" type that evaluates to `false` if this managed pointer is empty, and `true` otherwise. Note that this conversion operator allows a managed pointer to be used within a conditional context, such as within an `if` or `while` statement, but does _not_ allow managed pointers to be compared (e.g., via `<` or `>`). Also note that a superior solution is available in C++11 using the `explicit operator bool()` syntax, that removes the need for a special boolean‐like type and private equality‐comparison operators. == Synopsis Declared in `<bslma_managedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- operator xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[BoolType]() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#