Logo Search packages:      
Sourcecode: inkscape version File versions

NR::Nothing Struct Reference

#include <nr-maybe.h>

List of all members.

Detailed Description

A type with only one value, which (in principle) is only equal to itself.

Types that may (at runtime) pretend to be Nothing need only provide an operator bool operator==(Type, Nothing); the rest of the operator definitions will be taken care of automatically.

Such types should also provide a casting operator to Nothing, obviously.

Definition at line 40 of file nr-maybe.h.

Public Member Functions

template<typename T>
bool operator!= (T t)
bool operator!= (Nothing n)
template<typename T>
bool operator== (T t)
bool operator== (Nothing n)

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index