microsoft / microsoft/STL

P0447R28 `<hive>`

Open
#5,301 11 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cxx26
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

Description

WG21-P0447R28 <hive>
WG21-P3923R0 Additional NB Comment Resolutions For Kona 2025 (sections 2.2, 2.3, 2.4, 2.5)
LWG-4233 The helper lambda of std::erase for hive should specify return type as bool
LWG-4234 Including <hive> doesn't provide std::begin/end
LWG-4318 Have hive::erase_if reevaluate end() to avoid UB
LWG-4379 hive::reserve() needs Throws: element adjusted to match block min/max considerations
LWG-4467 hive::splice can throw bad_alloc
LWG-4554 Remove undefined behavior from hive for invalid limits

Feature-test macro:

#define __cpp_lib_hive 202502L

My VS-PR-738409 taught the IDE about this new extensionless header.

Note: We are not yet accepting PRs for C++26 features.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reading WG21-P0447R28 and the listed LWG issues and NB comment resolutions to understand the required std::hive behavior. No source files or tests are named in the issue; completion would require implementing the C++26 feature, addressing the listed resolutions, and providing the __cpp_lib_hive 202502L feature-test macro. Note that the issue says PRs are not yet being accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.