[#absl-NullSafeStringView] = xref:absl.adoc[absl]::NullSafeStringView :relfileprefix: ../ :mrdocs: Creates an `absl::string_view` from a pointer `p` even if it's null‐valued. == Synopsis Declared in `<absl/strings/string_view.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view NullSafeStringView(char const* p); ---- == Description This function should be used where an `absl::string_view` can be created from a possibly‐null pointer. == Return Value A view of `p`, or an empty view if `p` is null. == Parameters [cols="1,4"] |=== | Name| Description | *p* | The possibly‐null pointer to create a view from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#