StackList is a container for a list which elements exist only on the stack. More...
#include "StackList.h"
Classes | |
class | StackListIterator |
Public Types | |
using | TStackListEntry = StackListEntry< T > |
Public Member Functions | |
StackList ()=default | |
void | push (TStackListEntry &entry) noexcept |
T * | pop () noexcept |
T & | back () noexcept |
constexpr bool | empty () const noexcept |
constexpr StackListIterator | begin () noexcept |
constexpr TStackListEntry * | end () noexcept |
StackList is a container for a list which elements exist only on the stack.
The purpose is to keep allocation with new and delete away as long as stack seems to be available. The class is range based for loop ready. To use it a class needs to derive from StackListEntry.
Example:
Definition at line 24 of file StackList.h.
using StackList< T >::TStackListEntry = StackListEntry<T> |
Definition at line 27 of file StackList.h.
|
inlinenoexcept |
Definition at line 67 of file StackList.h.
Referenced by clang::insights::ScopeHandler::RemoveCurrentScope().
|
inlineconstexprnoexcept |
Definition at line 101 of file StackList.h.
|
inlineconstexprnoexcept |
Definition at line 69 of file StackList.h.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
|
inlineconstexprnoexcept |
Definition at line 102 of file StackList.h.
|
inlinenoexcept |
Definition at line 47 of file StackList.h.
References StackListEntry< T >::next, and StackListEntry< T >::prev.
Referenced by clang::insights::ScopeHandler::~ScopeHandler().
|
inlinenoexcept |
Definition at line 31 of file StackList.h.
References StackListEntry< T >::next, and StackListEntry< T >::prev.
Referenced by clang::insights::CodeGenerator::LambdaScopeHandler::LambdaScopeHandler(), and clang::insights::ScopeHandler::ScopeHandler().