get overloads

Synopses

Declared in <llvm/ADT/PointerIntPair.h>

Structured‐binding accessor for element Index of mutable entry E.

template<
    std::size_t Index,
    typename ValueTy>
decltype(auto)
get(StringMapEntry<ValueTy>& E);

Structured‐binding accessor for element Index of const entry E.

template<
    std::size_t Index,
    typename ValueTy>
decltype(auto)
get(StringMapEntry<ValueTy> const& E);

Structured‐binding accessor: index 0 is the pointer, index 1 is the int.

template<
    std::size_t I,
    typename PointerTy,
    unsigned int IntBits,
    typename IntType,
    typename PtrTraits,
    typename Info>
decltype(auto)
get(PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, Info> const& Pair);

Return Value

  • The key (Index 0) or mapped value (Index 1) of E.

  • The pointer when I is 0, otherwise the integer.

Template Parameters

Name

Description

Index

0 for the key, 1 for the value.

Parameters

Name

Description

E

Entry to project.

Pair

Pair to unpack.

Created with MrDocs