WPILibC++ 2024.1.1-beta-4
wpi::CastInfo< To, std::unique_ptr< From > > Struct Template Reference

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

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/Casting.h>

Inheritance diagram for wpi::CastInfo< To, std::unique_ptr< From > >:
wpi::UniquePtrCast< To, From, Derived > wpi::CastIsPossible< To, From * >

Additional Inherited Members

- Public Types inherited from wpi::UniquePtrCast< To, From, Derived >
using Self = detail::SelfType< Derived, UniquePtrCast< To, From > >
 
using CastResultType = std::unique_ptr< std::remove_reference_t< typename cast_retty< To, From >::ret_type > >
 
- Static Public Member Functions inherited from wpi::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 wpi::CastIsPossible< To, From * >
static bool isPossible (const From * &f)
 

Detailed Description

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

Provide a CastInfo specialized for std::unique_ptr.


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