[#BloombergLP-bsls-OutputRedirector-disable]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/OutputRedirector.adoc[OutputRedirector]::disable
:relfileprefix: ../../../
:mrdocs:

If the redirector is in a redirected state, restore the original target of the redirected stream and close the temporary buffer&period; If the redirector is not in a redirected state, this method is a no&hyphen;op&period; Calling this method invalidates all output in the temporary file, so a call to `load` after the next successful `enable` call will not load any output that was previously written to the file&period; This method does not clear the scratch buffer, so one may call `load` before calling `disable`, and the contents will be available after `disable` is called&period; If `disable` fails to disable the redirection, it will end the program by calling `std&colon;&colon;abort`&period;

== Synopsis

Declared in `&lt;bsls&lowbar;outputredirector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
disable();
----


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