Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Extend traits class to support custom logic after swaps and rotations

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by comparing the referenced Ygg node traits in src/rbtree.hpp and the left-rotation implementation in src/rbtree.cpp with the corresponding Boost.Intrusive traits and tree-operation interfaces. The issue is complete only after the supported callback design, affected operations, and validation approach are agreed and implemented.

Written by the indexing model from the issue text.

Description

Hi,

The Ygg library of intrusive data structures (https://github.com/tinloaf/ygg) allows custom logic to be called after node swaps and rotations by implementing the node traits class interface. For example:

Do you see it possible to allow similar functionality in Boost.Instrusive by extending the traits class interface similarly to as in Ygg?

Dominant language
C++
Stars
66
Forks
74
Avg merge
5h 22m
Merged PRs (30d)
1

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/intrusive

All issues in boostorg/intrusive

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.