documented new C++ support

This commit is contained in:
Araq 2015-01-28 10:52:13 +01:00
commit dbe71c715e
8 changed files with 185 additions and 29 deletions

View file

@ -12,7 +12,7 @@
## by Adam Langley.
type
NodeObj[T] = object {.pure, final, acyclic.}
NodeObj[T] = object {.acyclic.}
byte: int ## byte index of the difference
otherbits: char
case isLeaf: bool
@ -23,11 +23,10 @@ type
val: T
Node[T] = ref NodeObj[T]
CritBitTree*[T] = object {.
pure, final.} ## The crit bit tree can either be used
## as a mapping from strings to
## some type ``T`` or as a set of
## strings if ``T`` is void.
CritBitTree*[T] = object ## The crit bit tree can either be used
## as a mapping from strings to
## some type ``T`` or as a set of
## strings if ``T`` is void.
root: Node[T]
count: int