[#BloombergLP-bslx-GenericInStream-isValid] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/GenericInStream.adoc[GenericInStream]::isValid :relfileprefix: ../../../ :mrdocs: Return `true` if this stream is valid, and `false` otherwise. == Synopsis Declared in `<bslx_genericinstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isValid() const; ---- == Description An invalid stream is a stream in which insufficient or invalid data was detected during an extraction operation. Note that an empty stream will be valid unless an extraction attempt or explicit invalidation causes it to be otherwise. == Return Value `true` if this stream is valid, and `false` otherwise [.small]#Created with https://www.mrdocs.com[MrDocs]#