LLVM: llvm::AllocatorList< T, AllocatorT > Class Template Reference (original) (raw)

A linked-list with a custom, local allocator. More...

#include "[llvm/ADT/AllocatorList.h](AllocatorList%5F8h%5Fsource.html)"

Public Types
using value_type = T
using pointer = T *
using reference = T &
using const_pointer = const T *
using const_reference = const T &
using size_type = typename list_type::size_type
using difference_type = typename list_type::difference_type
using iterator = IteratorImpl<T, typename list_type::iterator>
using reverse_iterator
using const_iterator
using const_reverse_iterator
Public Member Functions
AllocatorList ()=default
AllocatorList (AllocatorList &&X)
AllocatorList (const AllocatorList &X)
AllocatorList & operator= (AllocatorList &&X)
AllocatorList & operator= (const AllocatorList &X)
~AllocatorList ()
void swap (AllocatorList &RHS)
bool empty () const
size_t size () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const
T & back ()
T & front ()
const T & back () const
const T & front () const
template<class... Ts>
iterator emplace (iterator I, Ts &&... Vs)
iterator insert (iterator I, T &&V)
iterator insert (iterator I, const T &V)
template
void insert (iterator I, Iterator First, Iterator Last)
iterator erase (iterator I)
iterator erase (iterator First, iterator Last)
void clear ()
void pop_back ()
void pop_front ()
void push_back (T &&V)
void push_front (T &&V)
void push_back (const T &V)
void push_front (const T &V)
template<class... Ts>
void emplace_back (Ts &&... Vs)
template<class... Ts>
void emplace_front (Ts &&... Vs)
void resetAlloc ()
Reset the underlying allocator.

template<class T, class AllocatorT>
class llvm::AllocatorList< T, AllocatorT >

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 simple_ilist for the implementation details.

Because this list owns the allocator, calling splice() with a different list isn't generally safe. As such, splice has been left out of the interface entirely.

Definition at line 33 of file AllocatorList.h.

const_iterator

template<class T, class AllocatorT>

Initial value:

IteratorImpl<const T, typename list_type::const_iterator>

Definition at line 126 of file AllocatorList.h.

const_pointer

template<class T, class AllocatorT>

const_reference

template<class T, class AllocatorT>

const_reverse_iterator

template<class T, class AllocatorT>

Initial value:

IteratorImpl<const T, typename list_type::const_reverse_iterator>

Definition at line 128 of file AllocatorList.h.

difference_type

template<class T, class AllocatorT>

iterator

template<class T, class AllocatorT>

pointer

template<class T, class AllocatorT>

template<class T, class AllocatorT>

reverse_iterator

template<class T, class AllocatorT>

Initial value:

IteratorImpl<T, typename list_type::reverse_iterator>

Definition at line 124 of file AllocatorList.h.

size_type

template<class T, class AllocatorT>

value_type

template<class T, class AllocatorT>

AllocatorList() [1/3]

template<class T, class AllocatorT>

AllocatorList() [2/3]

template<class T, class AllocatorT>

AllocatorList() [3/3]

template<class T, class AllocatorT>

~AllocatorList()

template<class T, class AllocatorT>

back() [1/2]

template<class T, class AllocatorT>

back() [2/2]

template<class T, class AllocatorT>

begin() [1/2]

template<class T, class AllocatorT>

begin() [2/2]

template<class T, class AllocatorT>

clear()

template<class T, class AllocatorT>

emplace()

template<class T, class AllocatorT>

template<class... Ts>

emplace_back()

template<class T, class AllocatorT>

template<class... Ts>

emplace_front()

template<class T, class AllocatorT>

template<class... Ts>

empty()

template<class T, class AllocatorT>

end() [1/2]

template<class T, class AllocatorT>

end() [2/2]

template<class T, class AllocatorT>

erase() [1/2]

template<class T, class AllocatorT>

erase() [2/2]

template<class T, class AllocatorT>

front() [1/2]

template<class T, class AllocatorT>

front() [2/2]

template<class T, class AllocatorT>

insert() [1/3]

template<class T, class AllocatorT>

insert() [2/3]

template<class T, class AllocatorT>

template

insert() [3/3]

template<class T, class AllocatorT>

operator=() [1/2]

template<class T, class AllocatorT>

operator=() [2/2]

template<class T, class AllocatorT>

pop_back()

template<class T, class AllocatorT>

pop_front()

template<class T, class AllocatorT>

push_back() [1/2]

template<class T, class AllocatorT>

push_back() [2/2]

template<class T, class AllocatorT>

push_front() [1/2]

template<class T, class AllocatorT>

push_front() [2/2]

template<class T, class AllocatorT>

rbegin() [1/2]

template<class T, class AllocatorT>

rbegin() [2/2]

template<class T, class AllocatorT>

rend() [1/2]

template<class T, class AllocatorT>

rend() [2/2]

template<class T, class AllocatorT>

resetAlloc()

template<class T, class AllocatorT>

size()

template<class T, class AllocatorT>

swap()

template<class T, class AllocatorT>


The documentation for this class was generated from the following file: