WPILibC++ 2025.2.1
|
This cast trait provides std::unique_ptr casting. More...
#include <wpi/Casting.h>
Public Types | |
using | Self = detail::SelfType<Derived, UniquePtrCast<To, From>> |
using | CastResultType |
Static Public Member Functions | |
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) |
This cast trait provides std::unique_ptr casting.
It has the semantics of moving the contents of the input unique_ptr into the output unique_ptr during the cast. It's also a good example of how to implement a move-only cast.
using wpi::UniquePtrCast< To, From, Derived >::CastResultType |
using wpi::UniquePtrCast< To, From, Derived >::Self = detail::SelfType<Derived, UniquePtrCast<To, From>> |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |