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_*/
A void (null) object.
Definition: void.hpp:57
virtual ~Void()
friend friend OutputStream & operator<<(OutputStream &ostream, const Void void_object)
Output stream operator for Void objects.
Definition: void.hpp:76
void(* VoidFunction)()


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:38