lemon/bits/enable_if.h
changeset 319 5e12d7734036
parent 220 a5d8c039f218
child 440 88ed40ad0d4f
equal deleted inserted replaced
0:b4d0955aadf8 1:4ccb9b49baee
    33 
    33 
    34 
    34 
    35 #ifndef LEMON_BITS_ENABLE_IF_H
    35 #ifndef LEMON_BITS_ENABLE_IF_H
    36 #define LEMON_BITS_ENABLE_IF_H
    36 #define LEMON_BITS_ENABLE_IF_H
    37 
    37 
    38 ///\file
    38 //\file
    39 ///\brief Miscellaneous basic utilities
    39 //\brief Miscellaneous basic utilities
    40 
    40 
    41 namespace lemon
    41 namespace lemon
    42 {
    42 {
    43 
    43 
    44   /// Basic type for defining "tags". A "YES" condition for \c enable_if.
    44   // Basic type for defining "tags". A "YES" condition for \c enable_if.
    45 
    45 
    46   /// Basic type for defining "tags". A "YES" condition for \c enable_if.
    46   // Basic type for defining "tags". A "YES" condition for \c enable_if.
    47   ///
    47   //
    48   ///\sa False
    48   //\sa False
    49   struct True {
    49   struct True {
    50     ///\e
    50     //\e
    51     static const bool value = true;
    51     static const bool value = true;
    52   };
    52   };
    53 
    53 
    54   /// Basic type for defining "tags". A "NO" condition for \c enable_if.
    54   // Basic type for defining "tags". A "NO" condition for \c enable_if.
    55 
    55 
    56   /// Basic type for defining "tags". A "NO" condition for \c enable_if.
    56   // Basic type for defining "tags". A "NO" condition for \c enable_if.
    57   ///
    57   //
    58   ///\sa True
    58   //\sa True
    59   struct False {
    59   struct False {
    60     ///\e
    60     //\e
    61     static const bool value = false;
    61     static const bool value = false;
    62   };
    62   };
    63 
    63 
    64 
    64 
    65 
    65