PlasmaActivities

ptr_to.h
1/*
2 SPDX-FileCopyrightText: 2015-2016 Ivan Cukic <ivan.cukic(at)kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef PTR_TO_H
8#define PTR_TO_H
9
10namespace kamd
11{
12namespace utils
13{
14enum {
15 Const = 0,
16 Mutable = 1,
17};
18
19template<typename T, int Policy = Const>
20struct ptr_to {
21 typedef const T *const type;
22};
23
24template<typename T>
25struct ptr_to<T, Mutable> {
26 typedef T *const type;
27};
28
29} // namespace utils
30} // namespace kamd
31
32#endif // PTR_TO_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:01:06 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.