Class Void

Class Documentation

class Void

A void (null) object.

A void (null) object that is occasionally useful for template instantiations. When you want to instantiate a template class without a type, just set its default type to this void object and create a specialisation of that template class.

Public Functions

inline virtual ~Void()

Friends

template<typename OutputStream>
friend OutputStream &operator<<(OutputStream &ostream, const Void void_object)

Output stream operator for Void objects.

This function not serve any purpose except to allow the stream to move on to the next output object.

Parameters:
  • ostream – : the output stream.

  • void_object – : the void object to ignore.

Returns:

OutputStream : return the output stream as is.