# Hardcoded std::vector\<int32\> to what in Unreal.

**URL:** <https://forums.unrealengine.com/t/hardcoded-std-vector-int32-to-what-in-unreal/2259020>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [January 4, 2025, 9:09am UTC](https://forums.unrealengine.com/t/hardcoded-std-vector-int32-to-what-in-unreal/2259020 "2025-01-04T09:09:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [January 4, 2025, 9:09am UTC](https://forums.unrealengine.com/t/hardcoded-std-vector-int32-to-what-in-unreal/2259020/1 "2025-01-04T09:09:59Z")

</div>

Hi!

I have this C++ code:

```auto
std::vector<int32> Values =
{ -7305,-6940,-6575,-6209,-5844,-5479,-5114,-4748,-4383,-4018,
-3653,-3287,-2922,-2557,-2192,-1826,-1461,-1096,-731,-365,
0,365,730,1096,1461,1826,2191,2557,2922,3287,
3652,4018,4383,4748,5113,5479,5844,6209,6574,6940 };

int32 Index = Year - 1990;

return Values[Index];

```

Which container should I use in Unreal?

Maybe a `int32[10] array = {...}` or `TArray<int32, TFixedAllocator<10>> Array;`

Thanks!
