slice overloads

Synopses

Declared in <llvm/ADT/ArrayRef.h>

Chop off the first N elements of the array.

MutableArrayRef<T>
slice(size_t N) const;

Chop off the first N elements of the array, and keep M elements in the array.

MutableArrayRef<T>
slice(
    size_t N,
    size_t M) const;

Return Value

  • MutableArrayRef with the first N elements removed.

  • MutableArrayRef of M elements starting after the first N.

Parameters

Name

Description

N

Number of elements to drop from the front.

M

Number of elements to keep.

Created with MrDocs