39#ifndef BLOCXX_STACK_HPP_INCLUDE_GUARD_
40#define BLOCXX_STACK_HPP_INCLUDE_GUARD_
41#include "blocxx/BLOCXX_config.h"
58 const_reference
top()
const {
return this->
back(); }
64 return (
i >= 0) ?
static_cast<int>(
size()) -
i : -1;
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability.
V::const_reference const_reference
void push_back(const T &x)
Append an element to the end of the Array.
const_iterator find(const T &x, const_iterator first, const_iterator last) const
Find element x in the array range specified by the first and last iterators.
void pop_back()
Remove the last element of the Array.
Array< T >::reference reference
Array< T >::size_type size_type
int search(const T &x) const
Array< T >::const_reference const_reference
const_reference top() const