summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cvec.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-11-14 11:04:40 +0100
committerTyge Løvset <[email protected]>2022-11-14 11:04:40 +0100
commitbb67f7192b7786792794b783a3d11c3e61d92c39 (patch)
tree037ea2229ccc698b2d73c6dfde668abebb1a23d8 /include/stc/cvec.h
parentbed7d49063cab3c4f2addb7d06af8db631a3b846 (diff)
downloadSTC-modified-bb67f7192b7786792794b783a3d11c3e61d92c39.tar.gz
STC-modified-bb67f7192b7786792794b783a3d11c3e61d92c39.zip
Internal update.
Diffstat (limited to 'include/stc/cvec.h')
-rw-r--r--include/stc/cvec.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h
index 2f49ec34..d395444d 100644
--- a/include/stc/cvec.h
+++ b/include/stc/cvec.h
@@ -89,13 +89,13 @@ STC_API _cx_iter _cx_memb(_erase_range_p)(_cx_self* self, _cx_value* p1,
STC_API _cx_iter _cx_memb(_insert_range)(_cx_self* self, _cx_value* pos,
const _cx_value* p1, const _cx_value* p2);
STC_API _cx_iter _cx_memb(_insert_uninit)(_cx_self* self, _cx_value* pos, const size_t n);
-#if !defined _i_no_cmp
+#if !defined i_no_cmp
STC_API int _cx_memb(_value_cmp)(const _cx_value* x, const _cx_value* y);
STC_API _cx_iter _cx_memb(_find_in)(_cx_iter it1, _cx_iter it2, _cx_raw raw);
STC_API _cx_iter _cx_memb(_binary_search_in)(_cx_iter it1, _cx_iter it2, _cx_raw raw, _cx_iter* lower_bound);
#endif
-#if !defined _i_no_emplace
+#if !defined i_no_emplace
STC_API _cx_iter _cx_memb(_emplace_range)(_cx_self* self, _cx_value* pos,
const _cx_raw* p1, const _cx_raw* p2);
STC_INLINE _cx_value* _cx_memb(_emplace)(_cx_self* self, _cx_raw raw)
@@ -110,9 +110,9 @@ STC_INLINE _cx_iter
_cx_memb(_emplace_at)(_cx_self* self, _cx_iter it, _cx_raw raw) {
return _cx_memb(_emplace_range)(self, _it_ptr(it), &raw, &raw + 1);
}
-#endif // !_i_no_emplace
+#endif // !i_no_emplace
-#if !defined _i_no_clone
+#if !defined i_no_clone
STC_API _cx_self _cx_memb(_clone)(_cx_self cx);
STC_API _cx_iter _cx_memb(_copy_range)(_cx_self* self, _cx_value* pos,
const _cx_value* p1, const _cx_value* p2);
@@ -124,7 +124,7 @@ STC_INLINE void _cx_memb(_copy)(_cx_self* self, const _cx_self* other) {
_cx_memb(_copy_range)(self, self->data, other->data,
other->data + cvec_rep_(other)->size);
}
-#endif // !_i_no_clone
+#endif // !i_no_clone
STC_INLINE size_t _cx_memb(_size)(const _cx_self* cx) { return cvec_rep_(cx)->size; }
STC_INLINE size_t _cx_memb(_capacity)(const _cx_self* cx) { return cvec_rep_(cx)->cap; }
@@ -213,7 +213,7 @@ STC_INLINE _cx_iter _cx_memb(_advance)(_cx_iter it, intptr_t n)
STC_INLINE size_t _cx_memb(_index)(const _cx_self* cx, _cx_iter it)
{ return it.ref - cx->data; }
-#if !defined _i_no_cmp
+#if !defined i_no_cmp
STC_INLINE _cx_iter
_cx_memb(_find)(const _cx_self* self, _cx_raw raw) {
@@ -370,7 +370,7 @@ _cx_memb(_erase_range_p)(_cx_self* self, _cx_value* p1, _cx_value* p2) {
return c_init(_cx_iter){p2 == end ? NULL : p1, end - len};
}
-#if !defined _i_no_clone
+#if !defined i_no_clone
STC_DEF _cx_self
_cx_memb(_clone)(_cx_self cx) {
const size_t len = cvec_rep_(&cx)->size;
@@ -388,9 +388,9 @@ _cx_memb(_copy_range)(_cx_self* self, _cx_value* pos,
*p++ = i_keyclone((*p1));
return it;
}
-#endif // !_i_no_clone
+#endif // !i_no_clone
-#if !defined _i_no_emplace
+#if !defined i_no_emplace
STC_DEF _cx_iter
_cx_memb(_emplace_range)(_cx_self* self, _cx_value* pos,
const _cx_raw* p1, const _cx_raw* p2) {
@@ -400,9 +400,9 @@ _cx_memb(_emplace_range)(_cx_self* self, _cx_value* pos,
*p++ = i_keyfrom((*p1));
return it;
}
-#endif // !_i_no_emplace
+#endif // !i_no_emplace
-#if !defined _i_no_cmp
+#if !defined i_no_cmp
STC_DEF _cx_iter
_cx_memb(_find_in)(_cx_iter i1, _cx_iter i2, _cx_raw raw) {
const _cx_value* p2 = _it2_ptr(i1, i2);