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)
5  2010, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
14 
28 #ifndef LIB_META_TRAIT_SPECIAL_H
29 #define LIB_META_TRAIT_SPECIAL_H
30 
31 
32 #include "lib/meta/trait.hpp"
33 
34 #include <unordered_map>
35 
36 
37 namespace lib {
38 namespace meta {
39 
40 
48  template<typename KEY, typename VAL, typename HASH>
49  struct can_STL_ForEach<std::unordered_map<KEY,VAL,HASH>>
50  {
51  enum { value = true };
52  };
53 
54 
55 
56 }} // namespace lib::meta
57 #endif
Trait template to detect a type usable with the STL for-each loop.
Definition: trait.hpp:555
STL namespace.
Implementation namespace for support and library code.
Helpers for type detection, type rewriting and metaprogramming.