Qx
v0.5.7
Qt Extensions Library
Loading...
Searching...
No Matches
qx-helpers.h
Go to the documentation of this file.
1
#ifndef QX_HELPERS_H
2
#define QX_HELPERS_H
3
4
// Standard Library Includes
5
#include <type_traits>
6
7
//Non-namespace Functions----------------------------------------------------------
8
template
<
typename
T>
9
const
T
qxAsConst
(T&& t) {
return
std::move(t); }
10
11
template
<
typename
T>
12
typename
std::add_const<T>::type
qxAsConst
(T& t) {
return
qAsConst(t); }
13
14
template
<
typename
T>
15
void
qxDelete
(T*& pointer)
16
{
17
delete
pointer;
18
pointer =
nullptr
;
19
}
20
21
#endif
// QX_HELPERS_H
qxDelete
void qxDelete(T *&pointer)
Definition
qx-helpers.h:15
qxAsConst
const T qxAsConst(T &&t)
Definition
qx-helpers.h:9
lib
utility
include
qx
utility
qx-helpers.h
Generated by
1.10.0