code: def remove_declarated(type_):
      
      type_ = remove_alias(type_)
      if isinstance(type_, cpptypes.elaborated_t):
          type_ = type_.base
      if isinstance(type_, cpptypes.declarated_t):
          type_ = type_.declaration
      return type_
docs: removes type-declaration class-binder :class:`declarated_t` from
      the `type_`
  
      If `type_` is not :class:`declarated_t`, it will be returned as is