summaryrefslogtreecommitdiff
path: root/libcult/cult/meta/remove-c.hxx
blob: a25382c50a883751b231c815bfbefbab2d2758df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// file      : cult/meta/remove-c.hxx
// author    : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2005-2010 Boris Kolpackov
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#ifndef CULT_META_REMOVE_C_HXX
#define CULT_META_REMOVE_C_HXX

namespace Cult
{
  namespace Meta
  {
    template <typename X>
    struct remove_c
    {
      typedef X R;
    };

    template <typename X>
    struct remove_c<X const>
    {
      typedef X R;
    };
  }
}

#endif  // CULT_META_REMOVE_C_HXX