summaryrefslogtreecommitdiffhomepage
path: root/docs/cmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-05-07 11:12:04 +0200
committerTyge Løvset <[email protected]>2021-05-07 11:12:04 +0200
commitb2558e4523a3a5d48c214e2625df46b71ecb1060 (patch)
tree1b169fb92d927cb545eee8826addfe6067047034 /docs/cmap_api.md
parent6457057331d7a98b25cfa48371280da859f005f1 (diff)
downloadSTC-modified-b2558e4523a3a5d48c214e2625df46b71ecb1060.tar.gz
STC-modified-b2558e4523a3a5d48c214e2625df46b71ecb1060.zip
Reverted c_trivial_*() to c_default_*().
Diffstat (limited to 'docs/cmap_api.md')
-rw-r--r--docs/cmap_api.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md
index 30a7b84a..37bfe110 100644
--- a/docs/cmap_api.md
+++ b/docs/cmap_api.md
@@ -91,11 +91,11 @@ uint64_t c_string_hash(const char* str); // use
uint64_t c_default_hash32(const void* data, size_t); // key one 32bit int
uint64_t c_default_hash64(const void* data, size_t); // key one 64bit int
int c_default_equals(const RawKey* a, const RawKey* b); // the == operator
-int c_trivial_equals(const RawKey* a, const RawKey* b); // memcmp
+int c_memcmp_equals(const RawKey* a, const RawKey* b); // uses memcmp
Type c_no_clone(Type val);
-Type c_trivial_fromraw(Type val); // plain copy
-Type c_trivial_toraw(Type* val);
-void c_trivial_del(Type* val); // does nothing
+Type c_default_fromraw(Type val); // plain copy
+Type c_default_toraw(Type* val);
+void c_default_del(Type* val); // does nothing
```
## Types
@@ -201,7 +201,7 @@ Demonstrate cmap with plain-old-data key type Vec3i and int as mapped type: cmap
typedef struct { int x, y, z; } Vec3i;
-using_cmap(vi, Vec3i, int, c_trivial_equals, // bitwise equals
+using_cmap(vi, Vec3i, int, c_memcmp_equals, // bitwise equals
c_default_hash); // bytewise hash
int main()