author | alpar |
Fri, 12 Mar 2004 15:42:51 +0000 | |
changeset 177 | 924f9555711d |
parent 165 | 9b078bc3ce13 |
child 184 | 08735c8704cd |
permissions | -rw-r--r-- |
1 // -*- mode:C++ -*-
3 #ifndef HUGO_INVALID_H
4 #define HUGO_INVALID_H
6 namespace hugo {
8 /// Dummy type to make it easier to make invalid iterators.
10 /// See \ref INVALID, how to use it.
12 struct Invalid {};
14 /// Invalid iterators.
16 /// \ref Invalid is a global type that converts to each iterator
17 /// in such a way that the value of the target iterator will be invalid.
19 //extern Invalid INVALID;
21 //const Invalid &INVALID = *(Invalid *)0;
22 const Invalid INVALID = Invalid();
24 };
26 #endif