Iterate over NULL terminated array of strings using for_each
<p>Iterating over a NULL terminated string using for_each is possible:</p>

<pre><code>const char *name = "Bob";

void func(const char &amp;arg)
{
   cout &lt;&lt; arg;
}

int main()
{
    for_each(name, name + strlen(name), func);
}
</code></pre>

<p>Is something similar possible for a NULL terminated list of strings (without having to determine the total length of the list first) such as:</p>

<pre><code>const char *names[] = { "Bob", "Adam", "Simon", NULL };
</code></pre>
