Skip to content
Discussion options

You must be logged in to vote

Glad you're enjoying the library!

None too critical but just curious anyway.. given whatever macro magic occurs I'm pretty sure I won't even have to try a naive typedef vec List here 😁

Right, typedef will only work with a complete CC type (i.e. including the key/element type/s) because cc_vec, cc_list, and so on are macros that generate a type based on their arguments. So you can, for example, do typedef cc_vec( int ) IntList; but not typedef cc_vec List;. Of course, if you're typedefing every container and key/element type combination, you would probably be better off just using a library based around manually instantiated pseudo-templates (I like STC in particular).

But you can always…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@metaleap
Comment options

@JacksonAllan
Comment options

Answer selected by metaleap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants