class Poco::Void

Overview

A dummy class with value-type semantics, mostly useful as a template argument. Moreā€¦

#include <Void.h>

class Void
{
public:
    // construction

    Void();
    Void(const Void& v);

    // methods

    Void&
    operator=(const Void& v);

    bool
    operator==(const Void& v) const;

    bool
    operator!=(const Void& v) const;
};

Detailed Documentation

A dummy class with value-type semantics, mostly useful as a template argument.

This class is typically used together with ActiveMethod, if no argument or return value is needed.

Construction

Void()

Creates the Void.

Void(const Void& v)

Creates the Void from another Void.

The philosophical aspects of this operation remain undiscussed for now.

Methods

Void&
operator=(const Void& v)

Assigns another void.

bool
operator==(const Void& v) const

Will return always true due to Voids having no members.

bool
operator!=(const Void& v) const

Will return always false due to Voids having no members.