[#bsl-shared_ptr-0a-2conversion-05] = xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared_ptr]::operator xref:bsl/shared_ptr-0a.adoc[BoolType] :relfileprefix: ../../ :mrdocs: Return a value of an "unspecified bool" type that evaluates to `false` if this shared pointer does not refer to an object, and `true` otherwise. Note that this conversion operator allows a shared pointer to be used within a conditional context (e.g., within an `if` or `while` statement), but does _not_ allow shared pointers to unrelated types to be compared (e.g., via `<` or `>`). == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- operator xref:bsl/shared_ptr-0a.adoc[BoolType]() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#