bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Vivien Kraus <vivien@planete-kraus.eu>
To: bug-gnulib <bug-gnulib@gnu.org>
Subject: Parameterize the memory allocator for the container library
Date: Sat, 10 Feb 2024 18:00:35 +0100	[thread overview]
Message-ID: <f71157bb4cf61508b3246097009aa52bd0df52df.camel@planete-kraus.eu> (raw)

Dear gnulib developers,

Is it possible to parameterize the memory allocator for the ordered map
library? I see, for instance, that the rbtree implementation uses
gl_rbtree_ordered.h, after defining things like NODE_PAYLOAD_PARAMS. I
think it would be easy to add a couple of function pointers and space
for the closure to parameterize the memory allocator. Has someone
already done something similar? Is there a workaround?

Best regards,


             reply	other threads:[~2024-02-10 17:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-10 17:00 Vivien Kraus [this message]
2024-02-10 17:28 ` Parameterize the memory allocator for the container library Bruno Haible
2024-02-15 10:04   ` Marc Nieper-Wißkirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f71157bb4cf61508b3246097009aa52bd0df52df.camel@planete-kraus.eu \
    --to=vivien@planete-kraus.eu \
    --cc=bug-gnulib@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).