# What this notation stands for?

**URL:** <https://forums.unrealengine.com/t/what-this-notation-stands-for/490475>\
**Category:** Plugins\
**Tags:** tarray:-arrays-in-un, unreal-engine, Plugins, CPP, question\
**Created:** [November 1, 2021, 10:49am UTC](https://forums.unrealengine.com/t/what-this-notation-stands-for/490475 "2021-11-01T10:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unzkilled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unzkilled](https://forums.unrealengine.com/u/Unzkilled)\
**Post date:** [November 1, 2021, 10:49am UTC](https://forums.unrealengine.com/t/what-this-notation-stands-for/490475/1 "2021-11-01T10:49:42Z")

</div>

Hey, I have saw this declaration in a plugin:

```
TArray<FColor>	FrameBuffer[2];

```

I wonder what’s the difference between this declaration and the default TArray FrameBuffer;

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [November 1, 2021, 11:46am UTC](https://forums.unrealengine.com/t/what-this-notation-stands-for/490475/2 "2021-11-01T11:46:28Z")

</div>

Well I can’t find any documentation, but by testing it I’d say it just a multidimensional array. If you declare it as _TArray FrameBuffer[2]_, you can’t work with _FrameBuffer_ as an array, but you can work with _FrameBuffer[0]_ and _FrameBuffer[1]_ as separate arrays. I.e. _FrameBuffer.Num()_ or _FrameBuffer.Add()_ won’t compile, but _FrameBuffer[0].Add()_ or _FrameBuffer[1].Num()_ will.

---

<div class="post-metadata">

**Author:** ![Unzkilled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unzkilled](https://forums.unrealengine.com/u/Unzkilled)\
**Post date:** [November 1, 2021, 12:43pm UTC](https://forums.unrealengine.com/t/what-this-notation-stands-for/490475/3 "2021-11-01T12:43:05Z")

</div>

I thought the same, just wanted to be sure. It is causing access violation for some reason on a plugin I am using. Can you imagine a safe way to working with it?

The violation is happening here:

```
for (int i = 0; i < 2; i++)
		FrameBuffer[i].Init(BGColor, GlobalHeight*GlobalWidth);
```
