Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions absl/types/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,9 @@ constexpr bool operator>=(Span<T> a, const U& b) {
// return absl::MakeSpan(&array[0], num_elements_);
// }
//
// NOTE: To avoid undefined behavior if the container is empty, use `.data()`
// or pass the container directly instead of using `&v[0]` or `&v[v.size()]`.
//
template <int&... ExplicitArgumentBarrier, typename T>
constexpr Span<T> MakeSpan(T* absl_nullable ptr ABSL_ATTRIBUTE_LIFETIME_BOUND,
size_t size) noexcept {
Expand Down