Lumiera  0.pre.03
»edit your freedom«
trait-special.hpp
Go to the documentation of this file.
1 /*
2  TRAIT-SPECIAL.hpp - supplement, not so commonly used definitions and specialisations
3 
4  Copyright (C) Lumiera.org
5  2010, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
37 #ifndef LIB_META_TRAIT_SPECIAL_H
38 #define LIB_META_TRAIT_SPECIAL_H
39 
40 
41 #include "lib/meta/trait.hpp"
42 
43 #include <unordered_map>
44 
45 
46 namespace lib {
47 namespace meta {
48 
49 
57  template<typename KEY, typename VAL, typename HASH>
58  struct can_STL_ForEach<std::unordered_map<KEY,VAL,HASH>>
59  {
60  enum { value = true };
61  };
62 
63 
64 
65 }} // namespace lib::meta
66 #endif
Trait template to detect a type usable with the STL for-each loop.
Definition: trait.hpp:550
STL namespace.
Implementation namespace for support and library code.
Helpers for type detection, type rewriting and metaprogramming.