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

Returns `false` if the given `absl&colon;&colon;string&lowbar;view` is empty, indicating that `StrSplit()` should omit the empty string&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;split&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct SkipEmpty;
----

== Description

Example&colon;

std&colon;&colon;vector&lt;std&colon;&colon;string&gt; v &equals; absl&colon;&colon;StrSplit(&quot;,a,,b,&quot;, &apos;,&apos;, SkipEmpty())&semi;

&sol;&sol; v&lsqb;0&rsqb;&equals;&equals; &quot;a&quot;, v&lsqb;1&rsqb;&equals;&equals; &quot;b&quot;

Note&colon; `SkipEmpty()` does not consider a string containing only whitespace to be empty&period; To skip such whitespace as well, use the `SkipWhitespace()` predicate&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/SkipEmpty/operator_call.adoc[`operator()`] 
| Returns `true` if `sp` is non&hyphen;empty&period;
|===



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