LLVM 23.0.0git
llvm::CastInfo< To, std::unique_ptr< From > > Struct Template Reference

Provide a CastInfo specialized for std::unique_ptr. More...

#include "llvm/Support/Casting.h"

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

Public Types

using Self
using CastReturnType
Public Types inherited from llvm::UniquePtrCast< To, From, Derived >
using Self = detail::SelfType<Derived, UniquePtrCast<To, From>>
using CastResultType

Static Public Member Functions

static CastReturnType doCast (const From &f)
static CastReturnType castFailed ()
static CastReturnType doCastIfPossible (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::UniquePtrCast< To, From, Derived >
static CastResultType doCast (std::unique_ptr< From > &&f)
static CastResultType castFailed ()
static CastResultType doCastIfPossible (std::unique_ptr< From > &f)
Static Public Member Functions inherited from llvm::CastIsPossible< To, From * >
static bool isPossible (const From &f)

Detailed Description

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

Provide a CastInfo specialized for std::unique_ptr.

Definition at line 533 of file Casting.h.

Member Typedef Documentation

◆ CastReturnType

using llvm::CastInfo< To, From, void >::CastReturnType

Definition at line 479 of file Casting.h.

◆ Self

using llvm::CastInfo< To, From, void >::Self

Definition at line 477 of file Casting.h.

Member Function Documentation

◆ castFailed()

CastReturnType llvm::CastInfo< To, From, void >::castFailed ( )
inlinestatic

Definition at line 490 of file Casting.h.

◆ doCast()

CastReturnType llvm::CastInfo< To, From, void >::doCast ( const From & f)
inlinestatic

Definition at line 481 of file Casting.h.

◆ doCastIfPossible()

CastReturnType llvm::CastInfo< To, From, void >::doCastIfPossible ( const From & f)
inlinestatic

Definition at line 492 of file Casting.h.


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