LLVM 19.0.0git
List of all members
llvm::CastInfo< To, std::optional< From > > Struct Template Reference

Provide a CastInfo specialized for std::optional<From>. More...

#include "llvm/Support/Casting.h"

Inheritance diagram for llvm::CastInfo< To, std::optional< From > >:
Inheritance graph
[legend]

Additional Inherited Members

- Static Public Member Functions inherited from llvm::OptionalValueCast< To, From, Derived >
static std::optional< To > castFailed ()
 
static std::optional< To > doCast (const From &f)
 
- Static Public Member Functions inherited from llvm::CastIsPossible< To, From, Enable >
static bool isPossible (const From &f)
 
- Static Public Member Functions inherited from llvm::DefaultDoCastIfPossible< To, From, Derived >
static To doCastIfPossible (From f)
 

Detailed Description

template<typename To, typename From>
struct llvm::CastInfo< To, std::optional< From > >

Provide a CastInfo specialized for std::optional<From>.

It's assumed that if the input is std::optional<From> that the output can be std::optional<To>. If that's not the case, specialize CastInfo for your use case.

Definition at line 539 of file Casting.h.


The documentation for this struct was generated from the following file: