📄 rationale
字号:
We could either implement simple chaining for variable maps, orimplement generic composition classes. The former was choosen,mostly because of simplicity.There were two implementation approaches for multiple optionoccurences in options_and_arguments. First is store themseparately. The advantage is that it's easy to obtain alloccurences before certain position on command line. Thedisadvantage is that we cannot return a reference to vector<vector<string> > in get_all_values. It was consideredthat if support for position-dependent options is to beadded, then we're be mostly interested in occurences of a single option that were before some point. That's possiblewith vector<vector<string> > storage.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -