Skip to content

P0843R14 <inplace_vector> #4766

Description

@StephanTLavavej

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerCompiler work involvedcxx26C++26 feature

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Unimplemented

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions