reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/ArrayRef.h
  290   class LLVM_NODISCARD MutableArrayRef : public ArrayRef<T> {
  292     using iterator = T *;
  299     /*implicit*/ MutableArrayRef(NoneType) : ArrayRef<T>() {}
  302     /*implicit*/ MutableArrayRef(T &OneElt) : ArrayRef<T>(OneElt) {}
  302     /*implicit*/ MutableArrayRef(T &OneElt) : ArrayRef<T>(OneElt) {}
  305     /*implicit*/ MutableArrayRef(T *data, size_t length)
  306       : ArrayRef<T>(data, length) {}
  309     MutableArrayRef(T *begin, T *end) : ArrayRef<T>(begin, end) {}
  309     MutableArrayRef(T *begin, T *end) : ArrayRef<T>(begin, end) {}
  309     MutableArrayRef(T *begin, T *end) : ArrayRef<T>(begin, end) {}
  312     /*implicit*/ MutableArrayRef(SmallVectorImpl<T> &Vec)
  313     : ArrayRef<T>(Vec) {}
  316     /*implicit*/ MutableArrayRef(std::vector<T> &Vec)
  317     : ArrayRef<T>(Vec) {}
  321     /*implicit*/ constexpr MutableArrayRef(std::array<T, N> &Arr)
  322         : ArrayRef<T>(Arr) {}
  326     /*implicit*/ constexpr MutableArrayRef(T (&Arr)[N]) : ArrayRef<T>(Arr) {}
  326     /*implicit*/ constexpr MutableArrayRef(T (&Arr)[N]) : ArrayRef<T>(Arr) {}
  328     T *data() const { return const_cast<T*>(ArrayRef<T>::data()); }
  328     T *data() const { return const_cast<T*>(ArrayRef<T>::data()); }
  337     T &front() const {
  343     T &back() const {
  350     MutableArrayRef<T> slice(size_t N, size_t M) const {
  352       return MutableArrayRef<T>(this->data() + N, M);
  356     MutableArrayRef<T> slice(size_t N) const {
  361     MutableArrayRef<T> drop_front(size_t N = 1) const {
  366     MutableArrayRef<T> drop_back(size_t N = 1) const {
  374     MutableArrayRef<T> drop_while(PredicateT Pred) const {
  375       return MutableArrayRef<T>(find_if_not(*this, Pred), end());
  381     MutableArrayRef<T> drop_until(PredicateT Pred) const {
  382       return MutableArrayRef<T>(find_if(*this, Pred), end());
  386     MutableArrayRef<T> take_front(size_t N = 1) const {
  393     MutableArrayRef<T> take_back(size_t N = 1) const {
  402     MutableArrayRef<T> take_while(PredicateT Pred) const {
  403       return MutableArrayRef<T>(begin(), find_if_not(*this, Pred));
  409     MutableArrayRef<T> take_until(PredicateT Pred) const {
  410       return MutableArrayRef<T>(begin(), find_if(*this, Pred));
  416     T &operator[](size_t Index) const {