How to detect if a string is stored in an aggregate type.

Hi all,

I have a question concerning to std::strings. Will you please advice me how to detect if a constant string is stored in an array of std::strings or in other objects with aggregate type. For example,

std::string a[2] = { “str1”, “str2” };

Is there any idea better than detecting this by the signature of the string class constructor?