UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::CNotCVRefTo Concept Reference

#include <NotCVRefTo.h>

Concept definition

template<typename T, typename SelfType>
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition NotCVRefTo.h:25
Definition SameAs.h:16

Detailed Description

Concept which describes convertibility from one type to another.

This is useful for templated constructors to prevent them being instantiated for the class type itself so that it will call a move or copy constructor instead:

struct FSomeClass { template <CNotCVRefTo<FSomeClass> ArgType> FSomeClass(ArgType&& Arg); { } };