MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Void.h
Go to the documentation of this file.
1
/** @noop License Comment
2
* @file
3
* @copyright
4
* This Source Code is subject to the terms of the Mozilla Public License, v2.0.
5
* If a copy of the MPL was not distributed with this file You can obtain one at
6
* https://mozilla.org/MPL/2.0/
7
*
8
* @author David Mórász
9
* @date 2025
10
*/
11
12
/**
13
* @file
14
* @brief
15
* These two are the most useful types in the arsenal of the C++ developer. Use these for dummy types or when it is
16
* easier to have explicit return types than dealing with void specializations in templates.
17
*/
18
19
#pragma once
20
21
/** @brief This struct may be only used in decltype or templating situations when definition is not required */
22
struct
FDeclareOnly;
23
24
/** @brief This struct may be used for situations where something needs to be returned but it's not meaningful to do so. */
25
struct
MCRO_API
FVoid
26
{
27
/** @brief A constructor which accepts any arguments and does nothing with them */
28
template
<
typename
... Args>
29
FVoid
(Args&&...) {}
30
};
FVoid
This struct may be used for situations where something needs to be returned but it's not meaningful t...
Definition
Void.h:26
FVoid::FVoid
FVoid(Args &&...)
A constructor which accepts any arguments and does nothing with them.
Definition
Void.h:29
Mcro
Public
Mcro
Void.h
Generated by
1.12.0