llvm::EnumeratedArray::operator[]

Subscript operators

Synopses

Declared in <llvm/ADT/EnumeratedArray.h>

Return a const reference to the element at enumerator Index.

ValueType const&
operator[](Enumeration Index) const;
» more...

Return a mutable reference to the element at enumerator Index.

ValueType&
operator[](Enumeration Index);
» more...

Return Value

  • Const reference to the element at Index.
  • Mutable reference to the element at Index.

Parameters

NameDescription
IndexEnumerator used as the array index.