Fix description for resize_uninitialized
This commit is contained in:
@@ -193,7 +193,8 @@ public:
|
||||
/// Resize and set all values to 0 / false / nullptr.
|
||||
_FORCE_INLINE_ void resize_initialized(U p_size) { _resize<true>(p_size); }
|
||||
|
||||
/// Resize and set all values to 0 / false / nullptr.
|
||||
/// Resize and keep memory uninitialized.
|
||||
/// This means that any newly added elements have an unknown value, and are expected to be set after the `resize_uninitialized` call.
|
||||
/// This is only available for trivially destructible types (otherwise, trivial resize might be UB).
|
||||
_FORCE_INLINE_ void resize_uninitialized(U p_size) { _resize<false>(p_size); }
|
||||
|
||||
|
||||
@@ -114,7 +114,8 @@ public:
|
||||
return _cowdata.template resize<true>(p_size);
|
||||
}
|
||||
|
||||
/// Resize and set all values to 0 / false / nullptr.
|
||||
/// Resize and keep memory uninitialized.
|
||||
/// This means that any newly added elements have an unknown value, and are expected to be set after the `resize_uninitialized` call.
|
||||
/// This is only available for trivially destructible types (otherwise, trivial resize might be UB).
|
||||
_FORCE_INLINE_ Error resize_uninitialized(Size p_size) {
|
||||
// resize() statically asserts that T is compatible, no need to do it ourselves.
|
||||
|
||||
Reference in New Issue
Block a user