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 * Use these two structs for dummy types or when it is easier to have explicit return types than dealing with void
15 * specializations in templates
16 */
17
18#pragma once
19
20/** This struct may be only used in decltype or templating situations when definition is not required */
21struct FDeclareOnly;
22
23/** This struct may be used for situations where something needs to be returned but it's not meaningful to do so. */
24struct MCRO_API FVoid
25{
26 /** A constructor which accepts any arguments and does nothing with them */
27 template <typename... Args>
28 FVoid(Args&&...) {}
29};
Definition Void.h:25
FVoid(Args &&...)
Definition Void.h:28