39# ifndef TPL_NODEPOOL_H
40# define TPL_NODEPOOL_H
93 return new (
allocate())
Node (std::forward<typename Node::key_type>(key));
WeightedDigraph::Node Node
T & push(const T &data) noexcept
Push a copy of data
size_t size() const noexcept
Return the number of elements stored in the stack.
bool is_empty() const noexcept
Return true if stack is empty.
T pop() noexcept
Pop by moving the top of stack.
Conjunto de nodos a reusarse.
Node_Pool(size_t __n=100) noexcept
Node * allocate(const typename Node::key_type &key)
Aparta memoria para un nodo y le asigna un valor de clave de tipo Key.
Node * allocate(typename Node::key_type &&key)
FixedStack< Node * > node_pool
void deallocate(Node *p) noexcept
Libera el nodo p.
DynList< T > maps(const C &c, Op op)
Classic map operation.
Stack implementations backed by dynamic or fixed arrays.