MEL
Microthread & Execution library
CommonDefs.h
1
#pragma once
2
/*
3
* SPDX-FileCopyrightText: 2022 Daniel Barrientos <danivillamanin@gmail.com>
4
*
5
* SPDX-License-Identifier: MIT
6
*/
7
namespace
mel
8
{
9
namespace
execution
10
{
16
struct
VoidType
17
{
18
};
19
// helper type to get a VoidType when template parameter is void
20
template
<
class
T>
struct
WrapperType
21
{
22
using
type = T;
23
};
24
template
<>
struct
WrapperType
<void>
25
{
26
using
type
=
VoidType
;
27
};
28
}
// namespace execution
29
}
// namespace mel
mel
Definition:
Callback_Impl.h:11
mel::execution::VoidType
Empty type used in some cases when a type is needed to represent a void.
Definition:
CommonDefs.h:17
mel::execution::WrapperType
Definition:
CommonDefs.h:21
include
execution
CommonDefs.h
Generated by
1.9.1