Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
RangePointerType.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Templates/UnrealTemplate.h" // For DeclVal
6
7namespace AlgoImpl
8{
9 /**
10 * Traits class whose Type member is the pointer type to an element of the range.
11 */
12 template <typename RangeType>
14 {
15 using Type = decltype(&*DeclVal<RangeType&>().begin());
16 };
17
18 template <typename T, unsigned int N>
19 struct TRangePointerType<T[N]>
20 {
21 using Type = T*;
22 };
23}