include
ecl
utilities
void.hpp
Go to the documentation of this file.
1
15
/*****************************************************************************
16
** Defines
17
*****************************************************************************/
18
19
#ifndef ECL_UTILITIES_VOID_HPP_
20
#define ECL_UTILITIES_VOID_HPP_
21
22
/*****************************************************************************
23
** Namespaces
24
*****************************************************************************/
25
26
namespace
ecl
{
27
28
/*****************************************************************************
29
** Typedefs
30
*****************************************************************************/
44
typedef
void (*
VoidFunction
)();
45
46
/*****************************************************************************
47
** Classes
48
*****************************************************************************/
57
class
Void
{
58
public
:
59
template
<
typename
OutputStream>
60
friend
OutputStream&
operator <<
(OutputStream& ostream,
const
Void
void_object);
61
62
virtual
~Void
() {}
63
};
64
75
template
<
typename
OutputStream>
76
OutputStream&
operator <<
(OutputStream& ostream,
const
Void
void_object) {
return
ostream; }
77
78
};
// Namespace ecl
79
80
81
82
#endif
/*ECL_UTILITIES_VOID_HPP_*/
ecl
Embedded control libraries.
ecl::Void
A void (null) object.
Definition:
void.hpp:57
ecl::Void::~Void
virtual ~Void()
Definition:
void.hpp:62
ecl::Void::operator<<
friend OutputStream & operator<<(OutputStream &ostream, const Void void_object)
Output stream operator for Void objects.
Definition:
void.hpp:76
ecl::VoidFunction
void(* VoidFunction)()
Convenient type definition for empty functions (void pointers).
Definition:
void.hpp:44
ecl_utilities
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:41