Skip to content

Commit

Permalink
Update include/beman/inplace_vector/inplace_vector.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Babst <jan.babst@gmail.com>
  • Loading branch information
wusatosi and jbab authored Nov 26, 2024
1 parent 8dbc733 commit 5ff463a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/beman/inplace_vector/inplace_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ struct inplace_vector_type_based_storage {
constexpr const T *begin() const { return elems.data(); }
};

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

0 comments on commit 5ff463a

Please sign in to comment.