C++ GC Plain Class Tarray

I want to use a TArray<TWeakObjectPtr<AActor>> m_agents; as a member variable in a plain C++ class (Not UObject)

Will Garbage Collector Delete it ?
Or is it safe to use it in a plain Classes ?

Thanks in Advance.

Adding UPROPERTY() in the header, above your variable declaration should mark the object to not be collected by GC. You can also use the AddToRoot function on objects which I believe also stops the GC picking them up.

UPROPERTY is NOT an option in plain C++ class,
as well as adding the objects to root.

It doesn’t answer my question.