Skip to content

Feature request: inplace_polymorphic<Base, Cap, Align, Allocator> #5

Description

@Quuxplusone

Now that C++26 has std::polymorphic<Base, Allocator>, SG14 should have inplace_polymorphic<Base, Cap, Align, Allocator>.

The reference implementation of polymorphic is here (MIT-licensed): https://github.com/jbcoe/value_types

inplace_polymorphic should use allocator_traits<Allocator>::construct to construct its value, in the same way that sg14::inplace_vector<T, Cap, Allocator> uses allocator_traits<Allocator>::construct to construct its elements. (Of course neither one ever calls allocator_traits<Allocator>::allocate.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions