Re: Adding elements to a SListHandle
- From: "Murray Cumming" <murrayc murrayc com>
- To: eric liprandi gmail com
- Cc: gtkmm-list gnome org
- Subject: Re: Adding elements to a SListHandle
- Date: Fri, 16 Sep 2005 16:54:03 +0200 (CEST)
> 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]