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

Synopsis

Declared in <util/string.h>

[[nodiscard]]
bool
ContainsNoNUL(std::string_view str) noexcept;

Return Value

true if str contains no NUL character.

Note

The return value should not be discarded.

Parameters

Name

Description

str

The string to inspect.

Created with MrDocs