lemon/invalid.h
changeset 1868 24bf4b8299e7
parent 1435 8e85e6bbefdf
child 1875 98698b69a902
equal deleted inserted replaced
0:27774894dec6 1:0101cae31a3e
    36   /// Invalid iterators.
    36   /// Invalid iterators.
    37   
    37   
    38   /// \ref Invalid is a global type that converts to each iterator
    38   /// \ref Invalid is a global type that converts to each iterator
    39   /// in such a way that the value of the target iterator will be invalid.
    39   /// in such a way that the value of the target iterator will be invalid.
    40 
    40 
    41   // It is also used to convert the \c INVALID constant to the
    41   //const Invalid &INVALID = *(Invalid *)0;
    42   // node iterator that makes is possible to write 
       
    43 
    42 
    44   //extern Invalid INVALID;
    43 #ifdef LEMON_ONLY_TEMPLATES
    45 
       
    46   //const Invalid &INVALID = *(Invalid *)0;
       
    47   const Invalid INVALID = Invalid();
    44   const Invalid INVALID = Invalid();
       
    45 #else
       
    46   extern const Invalid INVALID;
       
    47 #endif
    48 
    48 
    49 } //namespace lemon
    49 } //namespace lemon
    50 
    50 
    51 #endif
    51 #endif
    52   
    52