Hi!
This is part of Game Instance Subsystem class declaration:
TMap<int32, TSharedRef<FMyStruct>> GetMyData();
private:
TMap<int32, TSharedRef<FMyStruct>> MyData;
I want to allow read the variable MyData, but without modifying it and without making any copy. How can I do it?
Maybe, this way:
const TMap<int32, TSharedRef<FMyStruct>>& GetMyData();
Or as an output parameter.
Thanks!