[#util-ContainsNoNUL]
= xref:util.adoc[util]::ContainsNoNUL
:relfileprefix: ../
:mrdocs:

Check if a string does not contain any embedded NUL (0) characters

== Synopsis

Declared in `&lt;util&sol;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
ContainsNoNUL(std::string&lowbar;view str) noexcept;
----

== Return Value

true if str contains no NUL character&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| The string to inspect&period;
|===


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