Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

SAME_TYPE_AS

Inquiry Intrinsic Function (Generic): Inquires whether the dynamic type of one object is the same as the dynamic type of another object.

result = SAME_TYPE_AS (a , b)

a

(Input) Is an object of extensible type. If it is a polymorphic pointer, it must not have an undefined association status.

b

(Input) Is an object of extensible type. If it is a polymorphic pointer, it must not have an undefined association status.

Results

The result type is default logical scalar. The result is true only if the dynamic type of a is the same as the dynamic type of b.