# Help With TDoubleLinkedList

**URL:** <https://forums.unrealengine.com/t/help-with-tdoublelinkedlist/421426>\
**Category:** C++\
**Tags:** asset-pointer, unreal-engine, UE4, question, CPP\
**Created:** [March 31, 2018, 2:26pm UTC](https://forums.unrealengine.com/t/help-with-tdoublelinkedlist/421426 "2018-03-31T14:26:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![siditious](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siditious](https://forums.unrealengine.com/u/siditious)\
**Post date:** [March 31, 2018, 2:26pm UTC](https://forums.unrealengine.com/t/help-with-tdoublelinkedlist/421426/1 "2018-03-31T14:26:14Z")

</div>

So I have a data implementation which would be perfect for a linked list, but would suffer considerably using a TArray, however when I try to store a reference pointer in TDoubleLinkedList and then try to retrieve that pointer using TDoubleLinkedList::GetTail() it does not allow me to access UInstancedStaticMeshComponent members even if I try to cast directly to UInstancedStaticMeshComponent.

Here is the exact snippet of code I’m using

```
UInstancedStaticMeshComponent* Jim;
boxy.AddTail(Jim);
boxy.GetTail()->AddInstanceWorldSpace(Transform); //this is the line that returns error from compiler

```

the error returned is No member named ‘AddInstanceWorldSpace’ in TDoubleLinkedList::TDoubleLinkedListNode

Since the documentation for TDoubleLInkedList is pretty much non-existent, any help here would be highly appreciated.

---

<div class="post-metadata">

**Author:** ![TooManyCrashes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TooManyCrashes](https://forums.unrealengine.com/u/TooManyCrashes)\
**Post date:** [October 2, 2018, 1:32am UTC](https://forums.unrealengine.com/t/help-with-tdoublelinkedlist/421426/2 "2018-10-02T01:32:31Z")

</div>

Try (\*boxy.GetTail())-\>AddInstanceWorldSpace(Transform);

---

<div class="post-metadata">

**Author:** ![TooManyCrashes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TooManyCrashes](https://forums.unrealengine.com/u/TooManyCrashes)\
**Post date:** [October 2, 2018, 1:32am UTC](https://forums.unrealengine.com/t/help-with-tdoublelinkedlist/421426/3 "2018-10-02T01:32:59Z")

</div>

Try

```
 (*boxy.GetTail())->AddInstanceWorldSpace(Transform);
```

---

<div class="post-metadata">

**Author:** ![siditious](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siditious](https://forums.unrealengine.com/u/siditious)\
**Post date:** [December 29, 2018, 2:31pm UTC](https://forums.unrealengine.com/t/help-with-tdoublelinkedlist/421426/4 "2018-12-29T14:31:45Z")

</div>

Definitely an old post, but just in case anyone else here runs into the problem, this is the correct answer.
