Christian Gollwitzer <
auri...@gmx.de> wrote:
> Why not std::vector<const char *> ?
If the source consists of static string literals, another more efficient
option is using std::initializer_list<const char*> instead. In this
situation it kind of works like std::vector, except that it doesn't
need to allocate any additional memory (it simply contains a pointer
and a size, or possibly two pointers, which point to the static
data.) As a bonus, you get a nicer initialization syntax.