Skip to content

Commit 5001b0a

Browse files
committedNov 12, 2023
Add cista::*::cstring type
This new type is able to store a trailing \0 character, without compromising one byte for storage when the string is a small-string. Storage of NUL character within data is also supported. This is inspired by felixguendling#187 (comment). See felixguendling#187.
1 parent f1a9c46 commit 5001b0a

File tree

5 files changed

+579
-0
lines changed

5 files changed

+579
-0
lines changed
 

‎include/cista/containers.h

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "cista/containers/array.h"
44
#include "cista/containers/bitset.h"
55
#include "cista/containers/bitvec.h"
6+
#include "cista/containers/cstring.h"
67
#include "cista/containers/fws_multimap.h"
78
#include "cista/containers/hash_map.h"
89
#include "cista/containers/hash_set.h"

0 commit comments

Comments
 (0)