Synopsis

Declared in <llvm/ADT/ArrayRef.h>

template<>
class [[nodiscard]] ArrayRef<MachineMemOperand*>;

Type Aliases

Name

Description

const_iterator

Const iterator over the referenced array elements.

const_pointer

Pointer to a const element.

const_reference

Const reference to an element.

const_reverse_iterator

Const reverse iterator over the referenced array elements.

difference_type

Signed type used to express distances between iterators.

iterator

Iterator over the referenced array elements.

pointer

Mutable pointer to an element.

reference

Mutable reference to an element.

reverse_iterator

Reverse iterator over the referenced array elements.

size_type

Unsigned type used to express the size of the array.

value_type

Element type stored in the referenced array.

Member Functions

Name

Description

ArrayRef [constructor]

Constructors

operator=

Disallow accidental assignment from a temporary.

back

Get the last element.

begin

Return an iterator to the first element.

consume_back

consume_back() ‐ Returns the last element and drops it from ArrayRef.

consume_front

consume_front() ‐ Returns the first element and drops it from ArrayRef.

copy

Allocate a mutable copy in A and return a reference to it.

data

Return a pointer to the first element of the array.

drop_back

Drop the last N elements of the array.

drop_front

Drop the first N elements of the array.

drop_until

Return a copy of *this with the first N elements not satisfying the given predicate removed.

drop_while

Return a copy of *this with the first N elements satisfying the given predicate removed.

empty

Check if the array is empty.

end

Return an iterator past the last element.

equals

Check for element‐wise equality.

front

Get the first element.

operator[]

@}

rbegin

Return a reverse iterator to the last element.

rend

Return a reverse iterator to the element before the first element.

size

Get the array size.

slice

slice overloads

take_back

Return a copy of *this with only the last N elements.

take_front

Return a copy of *this with only the first N elements.

take_until

Return the first N elements of this Array that don't satisfy the given predicate.

take_while

Return the first N elements of this Array that satisfy the given predicate.

vec

@}

operator std::vector<MachineMemOperand*>

@}

Return Value

Note

The return value should not be discarded.

Created with MrDocs