[Lemon-commits] [lemon_svn] alpar: r229 - hugo/trunk/src/work/alpar
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:38:14 CET 2006
Author: alpar
Date: Wed Mar 10 17:43:50 2004
New Revision: 229
Added:
hugo/trunk/src/work/alpar/invalid.h
Log:
Declarations and definitions of Invalid and INVALID
Added: hugo/trunk/src/work/alpar/invalid.h
==============================================================================
--- (empty file)
+++ hugo/trunk/src/work/alpar/invalid.h Wed Mar 10 17:43:50 2004
@@ -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
+
More information about the Lemon-commits
mailing list