phobos ~master (2024-10-03T07:50:27Z)
Dub
Repo
RedBlackTree.length
std
container
rbtree
RedBlackTree
Returns the number of elements in the container.
Complexity:
O
(1)
.
class
RedBlackTree
(T, alias less = "a < b", bool allowDuplicates = false)
@
property
const
size_t
length
(
)
if
(
is
(
typeof
(
binaryFun
!
less
(
T.init
,
T.init
)))
)
Meta
Source
See Implementation
std
container
rbtree
RedBlackTree
aliases
Elem
Range
insert
constructors
this
functions
back
clear
equalRange
front
lowerBound
opBinaryRight
opEquals
opSlice
remove
removeAny
removeBack
removeFront
removeKey
stableInsert
toHash
toString
upperBound
properties
dup
empty
length
Returns the number of elements in the container.
Complexity: O(1).