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

Always returns `true`, indicating that all strings&hyphen;&hyphen;including empty strings&hyphen;&hyphen;should be included in the split output&period;

== Synopsis

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

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

== Description

This predicate is not strictly needed because this is the default behavior of `StrSplit()`&semi; however, it might be useful at some call sites to make the intent explicit&period;

Example&colon;

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

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/AllowEmpty/operator_call.adoc[`operator()`] 
| Returns `true` for any substring, including empty ones&period;
|===



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