|
| | span (const span &other) noexcept=default |
| | Copy construct.
|
| span & | operator= (const span &other) noexcept=default |
| | Copy assignment.
|
| constexpr | span () noexcept |
| | Default construct.
|
| constexpr | span (pointer ptr, size_type count) noexcept |
| | Construct from pointer and size.
|
| constexpr | span (pointer first, pointer last) noexcept |
| | Construct from begin/end pointers.
|
| | ~span () noexcept=default |
| | Destructor.
|
| constexpr iterator | begin () const noexcept |
| | Iterator to begin of span.
|
| constexpr iterator | end () const noexcept |
| | Iterator to one-past end of span.
|
| constexpr reference | front () const |
| | Access the first element. Undefined if span is empty.
|
| constexpr reference | back () const |
| | Access the last element. Undefined if span is empty.
|
| constexpr reference | operator[] (size_type idx) const |
| | Access an element of the sequence.
|
| constexpr pointer | data () const noexcept |
| | Return a pointer to the beginning of the sequence.
|
| constexpr size_type | size () const noexcept |
| | Number of elements in the sequence.
|
| constexpr size_type | size_bytes () const noexcept |
| | The size of the sequence in bytes.
|
| constexpr bool | empty () const noexcept |
| | True if the sequence is empty.
|
| span< Type > | first (size_type count) const noexcept |
| | Obtains a span of the first count elements.
|
| span< Type > | last (size_type count) const noexcept |
| | Obtains a span of the last count elements.
|
| span< Type > | subspan (size_type pos) const noexcept |
| | Obtains a sub-span starting at pos until end of the sequence.
|
| span< Type > | subspan (size_type pos, size_type len) const noexcept |
| | Obtains a sub-span of length len starting at pos.
|
| constexpr const char * | cdata_bytes () const noexcept |
| | A readonly view as byte content.
|
| template<class TypeT = Type, class = std::enable_if_t<!std::is_const_v<TypeT>>> |
| char * | data_bytes () const noexcept |
| | A writable view as byte content (if the pointer type is non-const). Like data(), the access itself is const.
|
template<class Type>
class stdFoam::span< Type >
Rudimentary functionality similar to std::span for holding memory view.
Definition at line 378 of file stdFoam.H.