Can someone explain the rules of object lifetimes and uninitialized memory in C++ (context: `std::inplace_vector`)?
I’ve been trying to implement my own version of std::inplace_vector
in C++26; that is, a dynamically-resizable array with compile-time fixed capacity, that also allows non-default-constructible elements to be stored.
Can someone explain the rules of object lifetimes and uninitialized memory in C++ (context: `std::inplace_vector`)?
I’ve been trying to implement my own version of std::inplace_vector
in C++26; that is, a dynamically-resizable array with compile-time fixed capacity, that also allows non-default-constructible elements to be stored.
Can someone explain the rules of object lifetimes and uninitialized memory in C++ (context: `std::inplace_vector`)?
I’ve been trying to implement my own version of std::inplace_vector
in C++26; that is, a dynamically-resizable array with compile-time fixed capacity, that also allows non-default-constructible elements to be stored.
Can someone explain the rules of object lifetimes and uninitialized memory in C++ (context: `std::inplace_vector`)?
I’ve been trying to implement my own version of std::inplace_vector
in C++26; that is, a dynamically-resizable array with compile-time fixed capacity, that also allows non-default-constructible elements to be stored.