Skip to content

Commit 5ff463a

Browse files
wusatosijbab
andauthored
Update include/beman/inplace_vector/inplace_vector.hpp
Co-authored-by: Jan Babst <[email protected]>
1 parent 8dbc733 commit 5ff463a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ struct inplace_vector_type_based_storage {
6969
constexpr const T *begin() const { return elems.data(); }
7070
};
7171

72-
// byte array based storage is used for non-constexpr environment, where default
73-
// initialization may not be available.
72+
// byte based storage is used for non-constexpr environment. Objects of type T are only
73+
// constructed when needed and they don't even have to be default constructible.
7474
//
7575
// Selecting this storage type implies: !std::is_trivial_v<T> and Capacity != 0
7676
template <typename T, std::size_t Capacity>

0 commit comments

Comments
 (0)