summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-06-22 15:12:40 +0200
committerGitHub <[email protected]>2020-06-22 15:12:40 +0200
commit8f43c2cd09525d76e89158a36336bef6b9d0720a (patch)
tree4d56acd52bbabbba9e7ba8f672f62f72bcd98c99
parent6b060a2393cc3a20f19e0e482e335c959dd845bb (diff)
downloadSTC-modified-8f43c2cd09525d76e89158a36336bef6b9d0720a.tar.gz
STC-modified-8f43c2cd09525d76e89158a36336bef6b9d0720a.zip
Update README.md
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 6903fb08..ee16b9ee 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,7 @@ RMAP(ii): sz: 0, bucks: 1677721, time: 0.65, erase 1048490
Memory efficiency
-----------------
-All containers are memory efficent, they take up as little memory as practical possible.
+The containers are memory efficent, i.e. they occupy as little memory as practical possible.
- **CString**, **CVector**: Representaion: one pointer size. The size and capacity is stored as part of the heap allocation that also holds the vector elements.
- **CList**: Representation: one pointer size. Each node allocates block storing value and next pointer.
- **CHash set**: Representation: 4 pointers size. The hash table stores a key per bucket, and one table of "used/hash-value", occupying only one byte per bucket.
@@ -97,8 +97,8 @@ All containers are memory efficent, they take up as little memory as practical p
Demos
-----
-The first example demonstrates an advanced complex type that shows some of the capability of the library. Look at the simpler to understand this better. This create one element into a large data structure (using C++ template syntax for describing the type):
-**CHash_map**< *CString*, *CHash_map*< *int*, *CList*< *CArray2*< *float* > > > >
+The first example has a complex nested container type, which demonstrates some of the capability of the library. Look at the simpler examples below to understand it better. The example adds an element into the data structure, and then access it. The type is here described with c++ template syntax:
+**CHashMap**< **CString**, **CHashMap**< *int*, **CList**< **CArray2**< *float* >>>>
```
#include "stc/cstring.h"
#include "stc/chash.h"