Skip to content

What does "template_size" and "dont_expand" in the complete_settings mean? #61

Answered by Jatana
pwn2ooown asked this question in Q&A

You must be logged in to vote

template_size is the number of template arguments a specific class requires. For example, pair requires two template arguments, vector requires one template argument, and int requires 0 template arguments.

If, for some reason, you do not want an alias to be expanded, you can specify it in the dont_expand option. For instance, normally, vpii is expanded into vector<pair<int, int>>. However, if you add pii to the dont_expand list, then vpii will be expanded only to vector<pii>.

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@pwn2ooown

Answer selected by pwn2ooown
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