Re: Adding elements to a SListHandle



> Thanks Murray,
>
> I gathered that part from the little documentation I found about it.
> Any tips on how to create a vector or list based on those?

If the method is
  ListHandle<TheElementType method()
then you can do
  std::vector<TheElementType> vec = the_method();

I think these intermediate types are just confusing and not worth the
bother, but I was outvoted the last time I suggested changing them to
specific containers, and we never found an example in the standard C++
library to support either preference.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]