Code

Prune initial timer work.
[inkscape.git] / src / util / reference.h
1 /*
2  * Inkscape::Traits::Reference - traits class for dealing with reference types
3  *
4  * Authors:
5  *   MenTaLguY <mental@rydia.net>
6  *
7  * Copyright (C) 2004 MenTaLguY
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #ifndef SEEN_INKSCAPE_TRAITS_REFERENCE_H
13 #define SEEN_INKSCAPE_TRAITS_REFERENCE_H
15 namespace Inkscape {
17 namespace Traits {
19 template <typename T>
20 struct Reference {
21     typedef T const &RValue;
22     typedef T &LValue;
23     typedef T *Pointer;
24     typedef T const *ConstPointer;
25 };
27 template <typename T>
28 struct Reference<T &> {
29     typedef T &RValue;
30     typedef T &LValue;
31     typedef T *Pointer;
32     typedef T const *ConstPointer;
33 };
35 }
37 }
39 #endif
40 /*
41   Local Variables:
42   mode:c++
43   c-file-style:"stroustrup"
44   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
45   indent-tabs-mode:nil
46   fill-column:99
47   End:
48 */
49 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :