microsoft / microsoft/STL

P0843R14 `<inplace_vector>`

Open
#4,766 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

WG21-P0843R14 <inplace_vector>
WG21-P3981R2 Better Return Types In inplace_vector And exception_ptr_cast() (obviously, only half of this paper applies here)
WG21-P4022R0 Remove inplace_vector::try_append_range
LWG-4122 Ill-formed operator<=> can cause hard error when instantiating std::inplace_vector
LWG-4147 Precondition on inplace_vector::emplace
LWG-4151 Precondition of inplace_vector::swap
LWG-4396 Improve inplace_vector(from_range_t, R&& rg)

This was also patched by the Core paper WG21-P3074R7 "Trivial unions".

Feature-test macros (in WG21-N5046; from cplusplus/draft#8898 and cplusplus/draft#7680):

#define __cpp_lib_inplace_vector           202603L
#define __cpp_lib_constexpr_inplace_vector 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 reviewing WG21-P0843R14 and the other listed papers, including the cited LWG issues and WG21-P3074R7. The issue names no implementation files or tests, and notes that PRs for C++26 features are not yet being accepted; completion would require implementing the applicable specification and feature-test macros when work is opened.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.