nsCOMArrayEnumerator *enumerator = new (aArray) nsCOMArrayEnumerator(); if (!enumerator) return NS_ERROR_OUT_OF_MEMORY;
nsSimpleArrayEnumerator* enumer = new nsSimpleArrayEnumerator(array); if (enumer == nsnull) return NS_ERROR_OUT_OF_MEMORY;
NS_NewArrayEnumerator(nsISimpleEnumerator* *aResult,                      const nsCOMArray_base& aArray){    nsCOMArrayEnumerator *enumerator = new (aArray) nsCOMArrayEnumerator();    if (!enumerator) return NS_ERROR_OUT_OF_MEMORY;    NS_ADDREF(*aResult = enumerator);    return NS_OK;}