Skip to content

Difference between std::launder, std::bit_cast, and std::start_lifetime_as #526

@retroandchill

Description

@retroandchill

Channel

"C++Weekly"

Topics

Explain the difference between std::launder, std::bit_cast, and std::start_lifetime_as, and when to use them. I know they all serve as more well-defined alternatives to using reinterpret_cast, but I'm unclear when I should use which one.

Length

This can probably be done in 5-10 minutes.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions