Rename storage to uninitialized_storage

This commit is contained in:
Christian Mazakas
2023-03-02 15:49:25 -08:00
parent 088941dc7b
commit 5a5c31de35

View File

@ -1130,11 +1130,11 @@ _STL_RESTORE_DEPRECATED_WARNING
constexpr static float const mlf = 0.875f; constexpr static float const mlf = 0.875f;
template <class T> template <class T>
union storage union uninitialized_storage
{ {
T t_; T t_;
storage(){} uninitialized_storage(){}
~storage(){} ~uninitialized_storage(){}
}; };
template <class TypePolicy,class A,class T> template <class TypePolicy,class A,class T>
@ -1449,8 +1449,8 @@ public:
emplace_type,element_type emplace_type,element_type
>::type; >::type;
storage<insert_type> s; uninitialized_storage<insert_type> s;
auto *p=std::addressof(s.t_); auto *p=std::addressof(s.t_);
type_policy::construct(al(),p,std::forward<Args>(args)...); type_policy::construct(al(),p,std::forward<Args>(args)...);