UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IsImplicitlyConstructible.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include <type_traits>
6
7namespace UE::Core::Private
8{
9 template <typename T, typename... ArgTypes>
11 {
12 template <typename U>
13 static void TakesU(U&&);
14
15 static constexpr bool value = (!std::is_aggregate_v<T> || sizeof...(ArgTypes) == 0) && requires{ TakesU<T>({ std::declval<ArgTypes>()... }); };
16 };
17 template <typename T, typename ArgType>
19 {
20 static constexpr bool value = std::is_convertible_v<ArgType, T>;
21 static constexpr bool Value = value;
22 };
23}
24
25template <typename T, typename... ArgTypes>
29
30template <typename T, typename... ArgTypes>
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
constexpr bool TIsImplicitlyConstructible_V
Definition IsImplicitlyConstructible.h:31
implementation
Definition PlayInEditorLoadingScope.h:8
Definition IsImplicitlyConstructible.h:27
Definition IsImplicitlyConstructible.h:11
static constexpr bool value
Definition IsImplicitlyConstructible.h:15