IndexCoreasmjit::Span< T >

asmjit::Span< T > Struct Template Reference [¶]

Public Members

Members

Member Functions

Overloaded Operators
Common Functionality
Data Accessors
Utility Functions
Iteration

Construction & Destruction

template<typename T>
T& Span<T>::first()nodiscardnoexcept[1/2][¶]

Returns a reference to the first element of the span.

Remarks

The span must have at least one element. Attempting to use first() on empty span will trigger an assertion failure in debug builds.

template<typename T>
const T& Span<T>::first() constnodiscardnoexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename T>
T& Span<T>::last()nodiscardnoexcept[1/2][¶]

Returns a reference to the last element of the span.

Remarks

The span must have at least one element. Attempting to use last() on empty span will trigger an assertion failure in debug builds.

template<typename T>
const T& Span<T>::last() constnodiscardnoexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename T>
template<typename Value>
bool Span<T>::contains(
Value&& value
) constnodiscardnoexcept[¶]

Tests whether the vector contains value.

template<typename T>
template<typename Value>
size_t Span<T>::index_of(
Value&& value
) constnodiscardnoexcept[¶]

Returns the first index of the given value or Globals::kNPos if it wasn't found'.

template<typename T>
template<typename Value>
size_t Span<T>::last_index_of(
Value&& value
) constnodiscardnoexcept[¶]

Returns the last index of the given value or Globals::kNPos if it wasn't found.