boostorg / boostorg/hana

[SetTheoretic] Minimal Representation via Accessors

Open
#367 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Consider the following minimal representation for `SetTheoretical`:

Refines `hana::Foldable` (unless we want infinite sets???)

Implements `get(s)` where T is like a key for an element.

Implements `key_of(e)` where `e` is an element belonging to a set of tag `S`

Implements `make` (or both `insert` and `erase_key`)

Then implementations of the currently proposed `SetTheoretical` concept such as `union_`, `intersection`, etc. would be provided by the above.

For `Searchable` the only issue I still see is with providing an efficient `contains` from `get`. Perhaps if it was somehow SFINAE friendly or it returned an optional or something.

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing SetTheoretical and Searchable concept definitions, then compare them with the proposed get, key_of, make, insert, and erase_key accessors. Done would require an agreed minimal representation design and corresponding updates to the affected concepts and operations; no files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.