def remove_defaults(self, type_or_string):
name = type_or_string<EOL>if not utils.is_str(type_or_string):<EOL><INDENT>name = self.class_declaration(type_or_string).name<EOL><DEDENT>if not self.remove_defaults_impl:<EOL><INDENT>return name<EOL><DEDENT>no_defaults = self.remove_defaults_impl(name)<EOL>if not no_defaults:<EOL><INDENT>return name<EOL><DEDENT>return no_defaults<EOL>
Removes template defaults from a templated class instantiation.

For example:
    .. code-block:: c++

       std::vector< int, std::allocator< int > >

will become:
    .. code-block:: c++

       std::vector< int >