# HG changeset patch # User alpar # Date 1078937030 0 # Node ID abfae454c3b5b43740ecef8f237e0afd6b9b5049 # Parent 743fa50c442e37c64383a950d58ec2102085891b Declarations and definitions of Invalid and INVALID diff -r 743fa50c442e -r abfae454c3b5 src/work/alpar/invalid.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/work/alpar/invalid.h Wed Mar 10 16:43:50 2004 +0000 @@ -0,0 +1,26 @@ +// -*- mode:C++ -*- + +#ifndef HUGO_INVALID_H +#define HUGO_INVALID_H + +namespace hugo { + + /// Dummy type to make it easier to make invalid iterators. + + /// See \ref INVALID, how to use it. + + struct Invalid {}; + + /// Invalid iterators. + + /// \ref Invalid is a global type that converts to each iterator + /// in such a way that the value of the target iterator will be invalid. + + ///extern Invalid INVALID; + + const Invalid &INVALID = *(Invalid *)0; + +}; + +#endif +