| 
    LLVM 22.0.0git
    
   | 
 
ValueIsPresent provides a way to check if a value is, well, present. More...
#include "llvm/Support/Casting.h"
Public Types | |
| using | UnwrappedType = T | 
Static Public Member Functions | |
| static bool | isPresent (const T &t) | 
| static decltype(auto) | unwrapValue (T &t) | 
ValueIsPresent provides a way to check if a value is, well, present.
For pointers, this is the equivalent of checking against nullptr, for Optionals this is the equivalent of checking hasValue(). It also provides a method for unwrapping a value (think calling .value() on an optional).
| using llvm::ValueIsPresent< T, Enable >::UnwrappedType = T | 
      
  | 
  inlinestatic |