# \[Suggestion\] Struct Usability Suggestion

**URL:** <https://forums.unrealengine.com/t/suggestion-struct-usability-suggestion/302267>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 22, 2014, 5:21pm UTC](https://forums.unrealengine.com/t/suggestion-struct-usability-suggestion/302267 "2014-12-22T17:21:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAVaught](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RAVaught](https://forums.unrealengine.com/u/RAVaught)\
**Post date:** [December 22, 2014, 5:21pm UTC](https://forums.unrealengine.com/t/suggestion-struct-usability-suggestion/302267/1 "2014-12-22T17:21:02Z")

</div>

Been playing around with structs a lot the last few days, and one of the things that I have noticed is extremely lacking with them is ancillary functionality. They have been truncated down to data containers, which is fine, except that they do not contain any of the usability generic functions that you would expect. Here are some example functions that I would love to see implemented to work with structs:

1. Get Struct Length - Return the  
number of elements in Struct
2. For  
Each member In Struct - Loop through  
the elements in a Struct
3. Get Data  
Type From Member - Returns the data  
type of the member from the given  
element in the struct.
4. Get Struct  
Member - Takes an int/byte and  
returns the Member at that position.

Basically, any functionality that could be applied to generic data containers that we could get to work with structs.
