lemon/bits/default_map.h
changeset 1968 78e6e2d1fd96
parent 1965 71b3bc042c47
child 1979 c2992fd74dad
equal deleted inserted replaced
13:e030cf3cac9d 14:69cf22d4732e
    27 ///\file
    27 ///\file
    28 ///\brief Graph maps that construct and destruct
    28 ///\brief Graph maps that construct and destruct
    29 ///their elements dynamically.
    29 ///their elements dynamically.
    30 
    30 
    31 namespace lemon {
    31 namespace lemon {
    32 
    32   
       
    33 #ifndef GLIBCXX_DEBUG
       
    34 
       
    35   template <typename _Graph, typename _Item, typename _Value>
       
    36   struct DefaultMapSelector {
       
    37     typedef ArrayMap<_Graph, _Item, _Value> Map;
       
    38   };
       
    39 
       
    40 #else
    33 
    41 
    34   template <typename _Graph, typename _Item, typename _Value>
    42   template <typename _Graph, typename _Item, typename _Value>
    35   struct DefaultMapSelector {
    43   struct DefaultMapSelector {
    36     typedef VectorMap<_Graph, _Item, _Value> Map;
    44     typedef VectorMap<_Graph, _Item, _Value> Map;
    37   };
    45   };
       
    46 
       
    47 #endif
    38 
    48 
    39   // bool
    49   // bool
    40   template <typename _Graph, typename _Item>
    50   template <typename _Graph, typename _Item>
    41   struct DefaultMapSelector<_Graph, _Item, bool> {
    51   struct DefaultMapSelector<_Graph, _Item, bool> {
    42     typedef VectorMap<_Graph, _Item, bool> Map;
    52     typedef VectorMap<_Graph, _Item, bool> Map;