COIN-OR::LEMON - Graph Library

Changeset 1696:4e03a355d2ea in lemon-0.x


Ignore:
Timestamp:
10/03/05 12:16:45 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2222
Message:

CompileTimeAnd?
Used by SplitGraphAdaptor?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/utility.h

    r1630 r1696  
    6565    ///\e
    6666    static const bool value = false;
     67  };
     68
     69  template <bool left, bool right>
     70  struct _CompileTimeAnd {
     71    static const bool value = false;
     72  };
     73 
     74  template <>
     75  struct _CompileTimeAnd<true, true> {
     76    static const bool value = true;
     77  };
     78
     79  template <typename Left, typename Right>
     80  struct CompileTimeAnd {
     81    static const bool value =
     82    _CompileTimeAnd<Left::value, Right::value>::value;
    6783  };
    6884
Note: See TracChangeset for help on using the changeset viewer.