Navigation
API > API/Plugins > API/Plugins/Learning
Type
typedef TOrValue< std::is_same< DestType, std::decay_t< SourceType >>::value, TIsConstructible< DestType, SourceType >> TMultiArrayElementsAreCompatible
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/MultiArray.h |
| Include | #include "MultiArray.h" |
Remarks
Copied from Core/Public/Containers/Array.h
Assume elements are compatible with themselves - avoids problems with generated copy constructors of arrays of forwarded types, e.g.:
struct FThing;
struct FOuter { TMultiArray<2, FThing> Arr; // this will cause errors without this workaround };
This should be changed to use std::disjunction and std::is_constructible, and the usage changed to use ::value instead of Value, when std::disjunction (C++17) is available everywhere.