Skip to content

Commit

Permalink
Give til::bitmap custom allocator support and add til::pmr::bitmap (#…
Browse files Browse the repository at this point in the history
…8787)

`til::details::bitmap<Allocator>` will use `Allocator` for its
`dynamic_bitset`, and it will use a rebound allocator for its run storage.

Allocator should be an allocator type storing `unsigned long long`, the
backing store type for `dynamic_bitset`.

I've introduced a type alias, `til::bitmap`, which papers over the
allocator choice for all existing code. I've also introduced a second
type alias, `til::pmr::bitmap`, which lets a consumer use the C++
polymorphic allocator system.

I chatted with @miniksa about whether to keep the "full" allocator
version in `details` or not. We decided that for the simplicity of the
`til` namespace, we would. If anybody has a compelling reason to use
`til::details::bitmap<Allocator>` directly, we can re-evaluate this
decision.
  • Loading branch information
DHowett committed Jan 19, 2021
1 parent 6c4878c commit 2919d96
Show file tree
Hide file tree
Showing 2 changed files with 494 additions and 266 deletions.
Loading

0 comments on commit 2919d96

Please sign in to comment.