Graph.opIndex

Returns the element of the child at the given index.

The type E can be specified as either Graph!(T) or T which will hence return a node from the children array at the given index of that type (either the child node or the child node's value).

  1. E opIndex(size_t idx)
    class Graph(T)
    E
    opIndex
    (
    E
    )
    (
    size_t idx
    )
    if (
    isGraphNodeType!(E) ||
    isGraphValueType!(E)
    )
  2. T opIndex(size_t idx)

Parameters

idx size_t

the index

Return Value

Type: E

the type E

Meta