Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
reference.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Inkscape::Traits::Reference - traits class for dealing with reference types
4 *
5 * Authors:
6 * MenTaLguY <mental@rydia.net>
7 *
8 * Copyright (C) 2004 MenTaLguY
9 *
10 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
11 */
12
13#ifndef SEEN_INKSCAPE_TRAITS_REFERENCE_H
14#define SEEN_INKSCAPE_TRAITS_REFERENCE_H
15
16namespace Inkscape {
17
18namespace Traits {
19
20template <typename T>
21struct Reference {
22 typedef T const &RValue;
23 typedef T &LValue;
24 typedef T *Pointer;
25 typedef T const *ConstPointer;
26};
27
28template <typename T>
29struct Reference<T &> {
30 typedef T &RValue;
31 typedef T &LValue;
32 typedef T *Pointer;
33 typedef T const *ConstPointer;
34};
35
36}
37
38}
39
40#endif
41/*
42 Local Variables:
43 mode:c++
44 c-file-style:"stroustrup"
45 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46 indent-tabs-mode:nil
47 fill-column:99
48 End:
49*/
50// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Helper class to stream background task notifications as a series of messages.