Difference between revisions of "Container Ideas"

From D Wiki
Jump to: navigation, search
Line 61: Line 61:
 
! align="left"|clear()
 
! align="left"|clear()
 
|-
 
|-
| rowspan="6"|Access
+
| rowspan="7"|Access
 
! align="left"|front()
 
! align="left"|front()
 
|-
 
|-
Line 73: Line 73:
 
|-
 
|-
 
! align="left"|opSlice(KeyType, KeyType)
 
! align="left"|opSlice(KeyType, KeyType)
 +
|-
 +
! align="left"| in
 
|-
 
|-
 
| rowspan="2"| Properties
 
| rowspan="2"| Properties

Revision as of 16:46, 13 February 2013

Sequence Associative Special Access
Container Double Linked List Single Linked List Random Access Map Multimap MapSet Set Stack Queue PriorityQueue
Types Type
RangeType
cRangeType
ElementType
KeyType
Modify insertFront(T)
insertFront(T...)
insertBack(T)
insertBack(T...)
insertBefore(RangeType, T)
insertBefore(RangeType, T...)
insertAfter(RangeType, T)
insertAfter(RangeType, T...)
removeFront(size_t = 1)
removeBack(size_t = 1)
remove(KeyType)
remove(Range)
remove(ElementType)
clear()
Access front()
back()
opIndex(KeyType)
find(KeyType)
opSlice(KeyType)
opSlice(KeyType, KeyType)
in
Properties length
empty
Capacity capacity
compact
reserve
max_size