MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / subspan

Method subspan

external/include/fstd/span.h:450–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448
449 TCB_SPAN_CONSTEXPR11 span<element_type, dynamic_extent>
450 subspan(size_type offset, size_type count = dynamic_extent) const
451 {
452 TCB_SPAN_EXPECT(offset <= size() &&
453 (count == dynamic_extent || offset + count <= size()));
454 return {data() + offset,
455 count == dynamic_extent ? size() - offset : count};
456 }
457
458 // [span.obs], span observers
459 constexpr size_type size() const noexcept { return storage_.size; }

Callers

nothing calls this directly

Calls 2

dataFunction · 0.85
sizeFunction · 0.70

Tested by

no test coverage detected