Skip to content

Custom types

Stanislav Vasilev edited this page Feb 4, 2025 · 5 revisions

The framework defines the following custom types. You can see them all in the list below.

Caution

You shouldn't use containers from the standard C++ library directly. We provide custom definitions for all standard library containers with a custom allocator in order to allow for plugin support on Windows. It's good practice to use our custom types, but if you're not developing with plugin support in mind you're free to not obey this rule.

C & C++ types:

  1. UImGui_FVector2/FVector2 - 2D float vector
  2. UImGui_FVector/FVector - 3D float vector
  3. UImGui_FVector4/FVector4 - 4D float vector
  4. UImGui_String/String - C string a.k.a. const char*

C++ containers:

  1. TFunction - a macro that expands into std::function
  2. FString - Equivalent to std::string
  3. FString8 - Equivalent to std::string
  4. FString16 - Equivalent to std::u16string
  5. FString32 - Equivalent to std::u32string
  6. FWString - Equivalent to std::wstring
  7. TVector - Equivalent to std::vector
  8. TQueue - Equivalent to std::queue
  9. TDeque - Equivalent to std::deque
  10. TPriorityQueue - Equivalent to std::priority_queue
  11. TStack - Equivalent to std::stack
  12. TForwardList - Equivalent to std::forward_list
  13. TList - Equivalent to std::list
  14. TUnorderedSet - Equivalent to phmap::parallel_flat_hash_set
  15. TSet - Equivalent to phmap::btree_set
  16. TSTDSet - Equivalent to std::set
  17. TSTDUnorderedSet - Equivalent to std::unordered_set
  18. TMultiset - Equivalent to phmap::btree_multiset
  19. TSTDMultiset - Equivalent to std::multiset
  20. TSTDUnorderedMultiset - Equivalent to std::unordered_multiset
  21. TMap - Equivalent to phmap::btree_map
  22. TSTDMap - Equivalent to std::map
  23. TMultimap - Equivalent to phmap::btree_multimap
  24. TSTDMultimap - Equivalent to std::multimap
  25. TSTDUnorderedMap - Equivalent to std::unordered_map
  26. TUnorderedMap - Equivalent to phmap::parallel_flat_hash_map
  27. TSTDUnorderedMultimap - Equivalent to std::unordered_multimap
Clone this wiki locally