deallocate_role Subroutine

private pure elemental subroutine deallocate_role(this)

Type Bound

ChatCompletion_messages

Arguments

Type IntentOptional Attributes Name
class(ChatCompletion_messages), intent(inout) :: this

Called by

proc~~deallocate_role~~CalledByGraph proc~deallocate_role foropenai_ChatCompletion::ChatCompletion_messages%deallocate_role proc~deallocate_chatcompletion_messages foropenai_ChatCompletion::ChatCompletion_messages%deallocate_ChatCompletion_messages proc~deallocate_chatcompletion_messages->proc~deallocate_role

Source Code

   elemental pure subroutine deallocate_role(this)
      class(ChatCompletion_messages), intent(inout) :: this
      if (allocated(this%role)) deallocate(this%role)
   end subroutine deallocate_role