TArray Reverse?

Hey how can i write the following code using UE4 tarrays?

std::vector<int32> list;
std::reverse(list.begin(), list.end());

Whats the std::reverse equivalent in for ue4 tarrays?
Thanks! :slight_smile:

Hi,

Reverse is available as an algorithm in the Algo namespace:

#include "Algo/Reverse.h"

Algo::Reverse(MyArray);

Hope this helps,

Steve

2 Likes

Thank you! :slight_smile: