class AllocatorList
Declaration
template <class T, class AllocatorT>
class AllocatorList { /* full declaration omitted */ };
Description
A linked-list with a custom, local allocator. Expose a std::list-like interface that owns and uses a custom LLVM-style allocator (e.g., BumpPtrAllocator), leveraging \a simple_ilist for the implementation details. Because this list owns the allocator, calling \a splice() with a different list isn't generally safe. As such, \a splice has been left out of the interface entirely.
Declared at: llvm/include/llvm/ADT/AllocatorList.h:34
Templates
- T
- AllocatorT
Method Overview
- public AllocatorList<T, AllocatorT>(AllocatorList<T, AllocatorT> && X)
- public AllocatorList<T, AllocatorT>(const AllocatorList<T, AllocatorT> & X)
- public AllocatorList<T, AllocatorT>()
- public const T & back() const
- public T & back()
- public llvm::AllocatorList::iterator begin()
- public llvm::AllocatorList::const_iterator begin() const
- public void clear()
- public template <class... Ts>llvm::AllocatorList::iterator emplace(llvm::AllocatorList::iterator I, Ts &&... Vs)
- public template <class... Ts>void emplace_back(Ts &&... Vs)
- public template <class... Ts>void emplace_front(Ts &&... Vs)
- public bool empty()
- public llvm::AllocatorList::iterator end()
- public llvm::AllocatorList::const_iterator end() const
- public llvm::AllocatorList::iterator erase(llvm::AllocatorList::iterator First, llvm::AllocatorList::iterator Last)
- public llvm::AllocatorList::iterator erase(llvm::AllocatorList::iterator I)
- public T & front()
- public const T & front() const
- public llvm::AllocatorList::iterator insert(llvm::AllocatorList::iterator I, const T & V)
- public template <class Iterator>void insert(llvm::AllocatorList::iterator I, Iterator First, Iterator Last)
- public llvm::AllocatorList::iterator insert(llvm::AllocatorList::iterator I, T && V)
- public void pop_back()
- public void pop_front()
- public void push_back(T && V)
- public void push_back(const T & V)
- public void push_front(T && V)
- public void push_front(const T & V)
- public llvm::AllocatorList::const_reverse_iterator rbegin() const
- public llvm::AllocatorList::reverse_iterator rbegin()
- public llvm::AllocatorList::const_reverse_iterator rend() const
- public llvm::AllocatorList::reverse_iterator rend()
- public void resetAlloc()
- public size_t size()
- public void swap(AllocatorList<T, AllocatorT> & RHS)
- public ~AllocatorList<T, AllocatorT>()
Methods
¶AllocatorList<T, AllocatorT>(
AllocatorList<T, AllocatorT>&& X)
AllocatorList<T, AllocatorT>(
AllocatorList<T, AllocatorT>&& X)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:140
Parameters
- AllocatorList<T, AllocatorT>&& X
¶AllocatorList<T, AllocatorT>(
const AllocatorList<T, AllocatorT>& X)
AllocatorList<T, AllocatorT>(
const AllocatorList<T, AllocatorT>& X)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:143
Parameters
- const AllocatorList<T, AllocatorT>& X
¶AllocatorList<T, AllocatorT>()
AllocatorList<T, AllocatorT>()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:139
¶const T& back() const
const T& back() const
Declared at: llvm/include/llvm/ADT/AllocatorList.h:184
¶T& back()
T& back()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:182
¶llvm::AllocatorList::iterator begin()
llvm::AllocatorList::iterator begin()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:169
¶llvm::AllocatorList::const_iterator begin() const
llvm::AllocatorList::const_iterator begin() const
Declared at: llvm/include/llvm/ADT/AllocatorList.h:171
¶void clear()
void clear()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:213
¶template <class... Ts>
llvm::AllocatorList::iterator emplace(
llvm::AllocatorList::iterator I,
Ts&&... Vs)
template <class... Ts>
llvm::AllocatorList::iterator emplace(
llvm::AllocatorList::iterator I,
Ts&&... Vs)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:187
Templates
- Ts
Parameters
- llvm::AllocatorList::iterator I
- Ts&&... Vs
¶template <class... Ts>
void emplace_back(Ts&&... Vs)
template <class... Ts>
void emplace_back(Ts&&... Vs)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:220
Templates
- Ts
Parameters
- Ts&&... Vs
¶template <class... Ts>
void emplace_front(Ts&&... Vs)
template <class... Ts>
void emplace_front(Ts&&... Vs)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:223
Templates
- Ts
Parameters
- Ts&&... Vs
¶bool empty()
bool empty()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:166
¶llvm::AllocatorList::iterator end()
llvm::AllocatorList::iterator end()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:170
¶llvm::AllocatorList::const_iterator end() const
llvm::AllocatorList::const_iterator end() const
Declared at: llvm/include/llvm/ADT/AllocatorList.h:172
¶llvm::AllocatorList::iterator erase(
llvm::AllocatorList::iterator First,
llvm::AllocatorList::iterator Last)
llvm::AllocatorList::iterator erase(
llvm::AllocatorList::iterator First,
llvm::AllocatorList::iterator Last)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:208
Parameters
- llvm::AllocatorList::iterator First
- llvm::AllocatorList::iterator Last
¶llvm::AllocatorList::iterator erase(
llvm::AllocatorList::iterator I)
llvm::AllocatorList::iterator erase(
llvm::AllocatorList::iterator I)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:204
Parameters
- llvm::AllocatorList::iterator I
¶T& front()
T& front()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:183
¶const T& front() const
const T& front() const
Declared at: llvm/include/llvm/ADT/AllocatorList.h:185
¶llvm::AllocatorList::iterator insert(
llvm::AllocatorList::iterator I,
const T& V)
llvm::AllocatorList::iterator insert(
llvm::AllocatorList::iterator I,
const T& V)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:194
Parameters
- llvm::AllocatorList::iterator I
- const T& V
¶template <class Iterator>
void insert(llvm::AllocatorList::iterator I,
Iterator First,
Iterator Last)
template <class Iterator>
void insert(llvm::AllocatorList::iterator I,
Iterator First,
Iterator Last)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:199
Templates
- Iterator
Parameters
- llvm::AllocatorList::iterator I
- Iterator First
- Iterator Last
¶llvm::AllocatorList::iterator insert(
llvm::AllocatorList::iterator I,
T&& V)
llvm::AllocatorList::iterator insert(
llvm::AllocatorList::iterator I,
T&& V)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:191
Parameters
- llvm::AllocatorList::iterator I
- T&& V
¶void pop_back()
void pop_back()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:214
¶void pop_front()
void pop_front()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:215
¶void push_back(T&& V)
void push_back(T&& V)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:216
Parameters
- T&& V
¶void push_back(const T& V)
void push_back(const T& V)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:218
Parameters
- const T& V
¶void push_front(T&& V)
void push_front(T&& V)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:217
Parameters
- T&& V
¶void push_front(const T& V)
void push_front(const T& V)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:219
Parameters
- const T& V
¶llvm::AllocatorList::const_reverse_iterator
rbegin() const
llvm::AllocatorList::const_reverse_iterator
rbegin() const
Declared at: llvm/include/llvm/ADT/AllocatorList.h:175
¶llvm::AllocatorList::reverse_iterator rbegin()
llvm::AllocatorList::reverse_iterator rbegin()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:173
¶llvm::AllocatorList::const_reverse_iterator rend()
const
llvm::AllocatorList::const_reverse_iterator rend()
const
Declared at: llvm/include/llvm/ADT/AllocatorList.h:178
¶llvm::AllocatorList::reverse_iterator rend()
llvm::AllocatorList::reverse_iterator rend()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:174
¶void resetAlloc()
void resetAlloc()
Description
Reset the underlying allocator.
Declared at: llvm/include/llvm/ADT/AllocatorList.h:230
¶size_t size()
size_t size()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:167
¶void swap(AllocatorList<T, AllocatorT>& RHS)
void swap(AllocatorList<T, AllocatorT>& RHS)
Declared at: llvm/include/llvm/ADT/AllocatorList.h:161
Parameters
- AllocatorList<T, AllocatorT>& RHS
¶~AllocatorList<T, AllocatorT>()
~AllocatorList<T, AllocatorT>()
Declared at: llvm/include/llvm/ADT/AllocatorList.h:159