llvm::ImmutableListFactory::add

Prepend Data onto list L (alias of concat).

Synopsis

Declared in <llvm/ADT/ImmutableList.h>

template<typename ElemT>
[[nodiscard]]
ImmutableList<T>
add(
    ElemT&& Data,
    ImmutableList<T> L);

Return Value

The uniqued list with Data prepended onto L.

NOTE

The return value should not be discarded.

Parameters

NameDescription
DataElement to prepend.
LExisting list that becomes the new list's tail.