# C++ naming conventions -- letters in front of names

**URL:** <https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 18, 2014, 10:39am UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310 "2014-08-18T10:39:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheBeardedBerry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheBeardedBerry](https://forums.unrealengine.com/u/TheBeardedBerry)\
**Post date:** [August 18, 2014, 10:39am UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310/1 "2014-08-18T10:39:03Z")

</div>

So looking through C++ tutorials and some of the Unreal source code I keep finding names with seemingly random letters in front. For example looking through the Slate tutorial found [here](http://minalien.com/unreal-engine-4-creating-menus-with-slatec-part-1/), there are names like this:

> class SLATETUTORIALS\_API **SMainMenuUI** :public SCompoundWidget

Why is there an “S” in front of the name of the class?

> void Construct(const **FArguments** & InArgs);

Why is there an “F” here?

I have done a bit of google searching and was unable to find any resources to explain this. Though its very possible I am just not sure what to call this and am not searching correctly. I think if someone could help me clear this up a lot of the code and tutorials would be much easier to understand.

Thanks!

---

<div class="post-metadata">

**Author:** ![Duncan\_Dam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Duncan\_Dam](https://forums.unrealengine.com/u/Duncan_Dam)\
**Post date:** [August 18, 2014, 10:48am UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310/2 "2014-08-18T10:48:49Z")

</div>

S is from the base class like ScompoundWidget, which stand for Slate.

A is from base class like AActor, stand for Actor.

U is from base class like UObject, stand for Unreal i think.

E is for Enum.

F is for most of anything else like struct, i don’t know what is stand for.

I is for Interface.

Some more else maybe i don’t know yet.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [August 18, 2014, 10:52am UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310/3 "2014-08-18T10:52:32Z")

</div>

That looks correct to me (it’s the same as the list I’d made, except I’d forgotten interfaces).

Pedantic nitpick: S is for anything deriving from SWidget (although most things that you make for games will derive from SCompoundWidget).

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [August 18, 2014, 3:23pm UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310/4 "2014-08-18T15:23:28Z")

</div>

Explanation for F: [Type Name Prefix Convention - C++ - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?237-Type-Name-Prefix-Convention&p=1190&viewfull=1#post1190)

“The F doesn’t really stand for anything. The first struct in the codebase was FVector, which was prefixed with F because it was a vector of floats, and the trend caught on.”

---

<div class="post-metadata">

**Author:** ![TheBeardedBerry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheBeardedBerry](https://forums.unrealengine.com/u/TheBeardedBerry)\
**Post date:** [August 19, 2014, 1:09am UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310/5 "2014-08-19T01:09:57Z")

</div>

Thanks guys! This is exactly what I needed!

---

<div class="post-metadata">

**Author:** ![TheBeardedBerry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheBeardedBerry](https://forums.unrealengine.com/u/TheBeardedBerry)\
**Post date:** [August 19, 2014, 2:48am UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310/6 "2014-08-19T02:48:21Z")

</div>

I also found this which helps a bit. Apparently there is also “T” which is for template classes.

[https://docs.unrealengine.com/latest/INT/Programming/Development/CodingStandard/index.html#namingconventions](https://docs.unrealengine.com/latest/INT/Programming/Development/CodingStandard/index.html#namingconventions)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c2f9025d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c2f9025d1](https://forums.unrealengine.com/u/anonymous_user_c2f9025d1)\
**Post date:** [August 25, 2016, 11:25pm UTC](https://forums.unrealengine.com/t/c-naming-conventions-letters-in-front-of-names/291310/7 "2016-08-25T23:25:19Z")

</div>

Very…eh Rational 😃  
but ok  
…from now on I will read it as F\*\*\*Vector then 😃
