LuaSTG-x Core API
|
Public Member Functions | |
function | at (local idx) |
function | back () |
function | begin () |
function | clear () |
function | copy () |
function | empty () |
function | end_ () |
function | erase (local it, local it2) |
function | erase_at (local idx) |
function | front () |
function | get_allocator () |
function | insert (local it, local v) |
function | insert_at (local idx, local v) |
function | insert_if (local v, local p) |
static function | islist (local v) |
function | iter () |
function | iter_rev () |
static function | list_iter (local lst) |
static function | list_rev_iter (local lst) |
function | pop_back () |
function | pop_front () |
function | push_back (local v) |
function | push_front (local v) |
function | remove (local v) |
function | remove_if (local p) |
function | size () |
Public Attributes | |
std::list_iterator | _begin |
std::list_iterator | _end |
function back | ( | ) |
Returns the last element in the list container.
Calling this function on an empty container causes error.
function begin | ( | ) |
alloc
v | any |
prev | std.list_iterator |
next | std.list_iterator |
Returns an iterator pointing to the first element in the list container.
If the container is empty, the returned iterator value shall not be dereferenced.
function clear | ( | ) |
Removes all elements from the list container, and leaving the container with a size of 0.
function empty | ( | ) |
Returns whether the list container is empty (i.e. whether its size is 0).
function end_ | ( | ) |
Returns an iterator referring to the past-the-end element in the list container. It does not point to any element, and thus shall not be dereferenced.
If the container is empty, this function returns the same as list::begin.
Removes from the list container either a single element (position) or a range of elements ([first,last)).
Return value: An iterator pointing to the element that followed the last element erased by the function call. This is the container end if the operation erased the last element in the sequence.
it | std.list_iterator |
it2 | std.list_iterator |
function front | ( | ) |
Returns the first element in the list container.
Calling this function on an empty container causes error.
function get_allocator | ( | ) |
Returns the allocator object associated with the list container.
The container is extended by inserting new elements before the element at the specified position.
Return value: An iterator that points to the first of the newly inserted elements.
it | std.list_iterator |
v | any |
function iter | ( | ) |
function iter_rev | ( | ) |
function pop_back | ( | ) |
Removes the last element in the list container, reducing the container size by one.
function pop_front | ( | ) |
Removes the first element in the list container, reducing its size by one.
Adds a new element at the end of the list container, after its current last element. This increases the container size by one.
Inserts a new element at the beginning of the list, right before its current first element. This increases the container size by one.
Removes from the container all the elements that compare equal to v.
Removes from the container all the elements for which Predicate p returns true.
function size | ( | ) |
Returns the number of elements in the list container.
std::list_iterator _begin |
std::list_iterator _end |