Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
qx-stringliteral.h
1#ifndef QX_STRINGLITERAL_H
2#define QX_STRINGLITERAL_H
3
4#include <algorithm>
5
6namespace Qx
7{
8
9template<size_t N>
11{
12//-Instance Fields---------------------------------------------------------------------------------------------------
13 char value[N];
14
15//-Constructor----------------------------------------------------------------------------------------------------------
16 constexpr StringLiteral(const char (&str)[N])
17 {
18 std::copy_n(str, N, value);
19 }
20};
21
22}
23
24#endif // QX_STRINGLITERAL_H
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
The StringLiteral template struct acts as a literal class type wrapper around a C-style string that e...
Definition qx-stringliteral.h:11
char value[N]
Definition qx-stringliteral.h:13
constexpr StringLiteral(const char(&str)[N])
Definition qx-stringliteral.h:16