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
Definition: Callback_Impl.h:11
Empty type used in some cases when a type is needed to represent a void.
Definition: CommonDefs.h:17
Definition: CommonDefs.h:21