[#absl-NullSafeStringView]
= xref:absl.adoc[absl]::NullSafeStringView
:relfileprefix: ../
:mrdocs:

Creates an `absl&colon;&colon;string&lowbar;view` from a pointer `p` even if it&apos;s null&hyphen;valued&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;string&lowbar;view&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
std::string&lowbar;view
NullSafeStringView(char const* p);
----

== Description

This function should be used where an `absl&colon;&colon;string&lowbar;view` can be created from a possibly&hyphen;null pointer&period;

== Return Value

A view of `p`, or an empty view if `p` is null&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The possibly&hyphen;null pointer to create a view from&period;
|===


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