[haiku-development] Re: Containers on kernel space

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 4 Aug 2021 19:03:51 -0400

On Wed, Aug 4, 2021 at 4:13 PM Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
wrote:

4 août 2021 22:06 "John Scipione" <jscipione@xxxxxxxxx> a écrit:

On Wed, Aug 4, 2021 at 4:06 PM Enrique Medina Gremaldos
<quiqueiii@xxxxxxxxx> wrote:

Ok, so Vector and Stack seem to follow the way of the Haiku!

If you don't mind, I will replace original code with Vector and submit
to review before doing
changes harder to track.

A bit of a tangent, but I have also worked on wrapping std::vector
into a nicer class, but my use case was userland, not kernel. It would
be nice if we had a BVector (and BStack I guess) class in the Support
Kit that wrapped std::vector giving it a more Be-like interface. I
could provide the code to get started although I haven't quite worked
out how to conditionally include the additional C++11 methods.

In userland we have BList and BObjectList, and except for the confusing
name, they provide the
same thing as std::vector.


Yeah, what I really want is a BHashMap for non-linear access.


Other related posts: