Our great sponsors
-
If you fancy to take a look, here's the repository.
-
I agree that macro templates are better than at least a naive void * approach. A naive void * approach either requires to vector to carry the element size information around at runtime (yuck!) or requires us to pass the size into every API call (the compiler can then optimize it away, hopefully). However, another approach is to declare the vector as a pointer to the element type (or some variation thereof) and let the compiler infer the element size at every API call, e.g. stb_ds or my own CC (shameless plug).
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
I agree that macro templates are better than at least a naive void * approach. A naive void * approach either requires to vector to carry the element size information around at runtime (yuck!) or requires us to pass the size into every API call (the compiler can then optimize it away, hopefully). However, another approach is to declare the vector as a pointer to the element type (or some variation thereof) and let the compiler infer the element size at every API call, e.g. stb_ds or my own CC (shameless plug).