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

#include <SameAs.h>

Concept definition

template<typename T, typename U>
concept UE::CSameAs = std::is_same_v<T, U> && std::is_same_v<U, T>
Definition SameAs.h:16

Detailed Description

Concept which is satisfied if and only if T and U are the same type.

We use this instead of std::same_as because <concepts> isn't a well supported header yet.