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:

1 Like

Hi,

Reverse is available as an algorithm in the Algo namespace:

#include "Algo/Reverse.h"

Algo::Reverse(MyArray);

Hope this helps,

Steve

10 Likes

Thank you! :slight_smile: