File: index.rst

package info (click to toggle)
mdds 3.1.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 6,068 kB
  • sloc: cpp: 20,809; sh: 1,369; makefile: 624; python: 603
file content (20 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Sorted String Map
=================

Sorted string map is an immutable associative container that provides an
efficient way to map string keys to values of a user-specified type.  Both keys
and values must be known at compile time and the key-value entries must be
sorted by the keys in ascending order.  The lookup algorithm takes advantage of
the pre-sorted entries and performs binary search to find the value from a key.

Besides the minimal amount of memory required to store the size and memory
address of the caller-provided key-value entries and a few extra data, it does
not allocate any additional memory; it simply re-uses the caller-provided
key-value entries in all of its operations.

.. toctree::
   :maxdepth: 1

   quickstart.rst
   api.rst