Cons‐cell node for an immutable list: a head element and a tail pointer.

Synopsis

Declared in <llvm/ADT/ImmutableList.h>

template<typename T>
class ImmutableListImpl
    : public FoldingSetNode

Description

Nodes are uniqued by ImmutableListFactory and live in a folding set.

Base Classes

Name

Description

FoldingSetNode

Convenience alias for the base node type stored in a folding set.

Member Functions

Name

Description

ImmutableListImpl [constructor] [deleted]

Copy construction is deleted; nodes are uniquely owned by the factory.

operator= [deleted]

Copy assignment is deleted; nodes are uniquely owned by the factory.

Profile

Profile this node's head and tail into folding‐set ID ID.

getHead

Return the element stored at the head of this cons cell.

getTail

Return the tail list node, or null if this is the last element.

Static Member Functions

Name

Description

Profile

Profile head H and tail L into folding‐set ID ID for uniquing.

Friends

Name

Description

llvm::ImmutableListFactory

Factory that allocates and uniques immutable lists of element type T.

Created with MrDocs