Skip to main content
`Ctrl`+`K`

# PETSC_ATTRIBUTE_MAY_ALIAS

Indicate to the compiler that a type is not subjected to type-based alias analysis, but is instead assumed to be able to alias any other type of objects

## Example Usage

      typedef PetscScalar PetscScalarAlias PETSC_ATTRIBUTE_MAY_ALIAS;

      PetscReal        *pointer;
      PetscScalarAlias *other_pointer = reinterpret_cast<PetscScalarAlias *>(pointer);

## See Also

`PetscHasAttribute()`

## Level

advanced

## Location

include/petscmacros.h

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages