Difference between revisions of "Deque.capacity"

From OpenEUO
Jump to: navigation, search
(Created page with "== Calling Pattern == Call local d = sl.deque() -- later local r = d.capacity() Results r is a number == Description == Calling capacity returns the maximum capacity of the...")
 
(No difference)

Latest revision as of 17:07, 18 December 2010

Calling Pattern

Call

local d = sl.deque()
-- later
local r = d.capacity()

Results

r is a number

Description

Calling capacity returns the maximum capacity of the queue. Currently capacity is unlimited, as denoted by a return value of -1. Future versions (0.07+) of deque will allow an upper bound to be specified in order to support circular queues.

Upon Error

Errors are reported and handled according to the operant error redirection mode.

See Also