# Can a function accept an unspecified data format as its argument, instead of a specific one?

**URL:** <https://forums.unrealengine.com/t/can-a-function-accept-an-unspecified-data-format-as-its-argument-instead-of-a-specific-one/41868>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [September 16, 2015, 2:16am UTC](https://forums.unrealengine.com/t/can-a-function-accept-an-unspecified-data-format-as-its-argument-instead-of-a-specific-one/41868 "2015-09-16T02:16:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [September 16, 2015, 2:42am UTC](https://forums.unrealengine.com/t/can-a-function-accept-an-unspecified-data-format-as-its-argument-instead-of-a-specific-one/41868/3 "2015-09-16T02:42:28Z")

</div>

You want to create template functions: template\<T\> Void Blah(…) { }  
They are kinda complicated to build and debug messages are weird so most ppl don’t like them, going with overloading instead.  
Here’s some tips from the Wiki about templates in gameplay code…

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/can-a-function-accept-an-unspecified-data-format-as-its-argument-instead-of-a-specific-one/41868)._
