COIN-OR::LEMON - Graph Library

Changeset 209:765619b7cbb2 in lemon-1.2 for lemon/bits/utility.h


Ignore:
Timestamp:
07/13/08 20:51:02 (11 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Apply unify-sources.sh to the source tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/utility.h

    r117 r209  
    1 /* -*- C++ -*-
     1/* -*- mode: C++; indent-tabs-mode: nil; -*-
    22 *
    3  * This file is a part of LEMON, a generic C++ optimization library
     3 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    55 * Copyright (C) 2003-2008
     
    8484
    8585  /**************** enable_if from BOOST ****************/
    86  
     86
    8787  template <typename Type, typename T = void>
    8888  struct exists {
     
    9090  };
    9191
    92  
     92
    9393  template <bool B, class T = void>
    9494  struct enable_if_c {
     
    9999  struct enable_if_c<false, T> {};
    100100
    101   template <class Cond, class T = void> 
     101  template <class Cond, class T = void>
    102102  struct enable_if : public enable_if_c<Cond::value, T> {};
    103103
     
    110110  struct lazy_enable_if_c<false, T> {};
    111111
    112   template <class Cond, class T> 
     112  template <class Cond, class T>
    113113  struct lazy_enable_if : public lazy_enable_if_c<Cond::value, T> {};
    114114
     
    122122  struct disable_if_c<true, T> {};
    123123
    124   template <class Cond, class T = void> 
     124  template <class Cond, class T = void>
    125125  struct disable_if : public disable_if_c<Cond::value, T> {};
    126126
     
    133133  struct lazy_disable_if_c<true, T> {};
    134134
    135   template <class Cond, class T> 
     135  template <class Cond, class T>
    136136  struct lazy_disable_if : public lazy_disable_if_c<Cond::value, T> {};
    137137
Note: See TracChangeset for help on using the changeset viewer.