C
Carter
Hi,
I am currently working on a project in C++ but I am somewhat unsure
about how to implement the equivalent of C/Java style handles. I am
curious about the correct idiomatic way to do this. My problem is as
follows I have a set of elements which I want to update to a new value
all at the same time. I figure I would use a handle for this.
In C this might be a T** handle. and possibly an array/linked list
holding the pointers T* array[N]. What is the best way to do something
like this in C++?
Regards,
Carter.
I am currently working on a project in C++ but I am somewhat unsure
about how to implement the equivalent of C/Java style handles. I am
curious about the correct idiomatic way to do this. My problem is as
follows I have a set of elements which I want to update to a new value
all at the same time. I figure I would use a handle for this.
In C this might be a T** handle. and possibly an array/linked list
holding the pointers T* array[N]. What is the best way to do something
like this in C++?
Regards,
Carter.