#include "Templates/Requires.h"
#include "TVariantMeta.h"
#include <type_traits>
Go to the source code of this file.
◆ operator<<()
Serialization function for TVariants.
In order for a TVariant to be serializable, each type in its template parameter pack must:
- Have a default constructor. This is required because when reading the type from an archive, it must be default constructed before being loaded.
- Implement the
FArchive& operator<<(FArchive&, T&) function. This is required to serialize the actual type that's stored in TVariant.
◆ Visit()
template<
typename Func , typename... Variants>
| decltype(auto) Visit |
( |
Func && |
Callable, |
|
|
Variants &&... |
Args |
|
) |
| |
Apply a visitor function to the list of variants