[#BloombergLP-bslx-TestInStream-isValid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestInStream.adoc[TestInStream]::isValid
:relfileprefix: ../../../
:mrdocs:

Return `true` if this stream is valid, and `false` otherwise&period;

== Synopsis

Declared in `&lt;bslx&lowbar;testinstream&period;h&gt;`

[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&period; Note that an empty stream will be valid unless an extraction attempt or explicit invalidation causes it to be otherwise&period;

== Return Value

`true` if valid&semi; `false` otherwise


[.small]#Created with https://www.mrdocs.com[MrDocs]#
