Cast trait for constructing a value‐typed To from a From pointer.
Synopsis
Declared in <llvm/Support/Casting.h>
template<
typename To,
typename From,
typename Derived = void>
struct ValueFromPointerCast
: CastIsPossible<To, From*>
, NullableValueCastFailed<To>
, DefaultDoCastIfPossible<To, From*, /* implementation-defined */>
Description
This cast trait provides casting for the specific case of casting to a value‐typed object from a pointer‐typed object. Note that To must be nullable/constructible from a pointer to From to use this cast.
Base Classes
Name |
Description |
Trait that reports whether a cast from |
|
Provides a declarative |
|
|
Provides a default |
Static Member Functions
Name |
Description |
Returns a null |
|
Constructs a |
|
Casts |
|
Returns true if a cast from |
Created with MrDocs