Looking for a C++ library with set operations over TArray

I need to be able to perform at least set union, intersection and difference.
I found that TRange performs these operations but I can’t understand how to use it together with TArray.
Also I found this https://docs.unrealengine.com/en-US/Engine/Blueprints/UserGuide/Sets/SetNodes/index.html which seems to be exacly what I’m looking for but I think it is for blueprients only. When I clicked Alt+G on the Intersection node (for example) I received this message
LogSelectionDetails: Warning: NavigateToFunctionSource: Unable to find symbols for ‘UBlueprintSetLibrary::Set_Intersection’ [Element not found.]
So does anyone know of such library? because I really don’t want to have to write it by hand

Okay it seems the functionality i’m looking for is contained in the TSet class. Awesome