parameters: (x, template_name)
return_statement: return re.match('^std::%s<.*>$' % template_name, x) is not None
docstring: Test if a type is a given template instantiation.
docstring_summary: Test if a type is a given template instantiation.
docstring_tokens: Test if a type is a given template instantiation .
function: def is_specialization_of(x, template_name):
      "Test if a type is a given template instantiation."
      global _versioned_namespace
      if type(x) is gdb.Type:
          x = x.tag
      if _versioned_namespace:
          return re.match('^std::(%s)?%s<.*>$' % (_versioned_namespace, template_name), x) is not None
      return re.match('^std::%s<.*>$' % template_name, x) is not None
function_tokens: def is_specialization_of ( x , template_name ) : global _versioned_namespace if type ( x ) is gdb . Type : x = x . tag if _versioned_namespace : return re . match ( '^std::(%s)?%s<.*>$' % ( _versioned_namespace , template_name ) , x ) is not None return re . match ( '^std::%s<.*>$' % template_name , x ) is not None