Return an iterator over the list of template arguments in a C++ type
string.
>>> t = 'map<string, vector<int, allocator<int> >, allocator<v<i>, a<i>> >'
>>> list(extract_template_args(t))
['string', 'vector<int, allocator<int> >', 'allocator<v<i>, a<i>>']
>>> list(extract_template_args('int'))
[]
 
Definition at line 268 of file semantics.py.
  270     Return an iterator over the list of template arguments in a C++ type 
  273     >>> t = 'map<string, vector<int, allocator<int> >, allocator<v<i>, a<i>> >' 
  274     >>> list(extract_template_args(t)) 
  275     ['string', 'vector<int, allocator<int> >', 'allocator<v<i>, a<i>>'] 
  276     >>> list(extract_template_args('int')) 
  281     for p, c 
in enumerate(cpp_type):
 
  283             if template_level == 1:
 
  284                 yield cpp_type[arg_start:p].strip()
 
  288             if template_level == 1:
 
  292             if template_level == 0:
 
  293                 yield cpp_type[arg_start:p].strip()