Tobias Oberstein wrote:
> I'd like to use a STL std::vector<nsCOMPtr<nsISomething> > component
> _internally_,

You might want to use nsSupportsArray instead (in xpcom/ds)
Should work as in

nsCOMPtr<nsISupportsArray> array;
NS_NewISupportsArray(getter_AddRefs(array));
array->InsertElementAt(your_element, position);

See http://lxr.mozilla.org/mozilla/source/xpcom/ds/nsISupportsArray.idl 
for a complete description of the interface.

-- 
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
                                                  -- Benjamin Franklin


Reply via email to