score
Home
Classes
Namespaces
Files
QMapHelper.hpp
Go to the documentation of this file.
1
#pragma once
11
template
<
typename
T>
12
struct
QMapKeyAdaptor
13
{
14
const
T& map;
15
16
auto
begin()
const
{
return
map.keyBegin(); }
17
18
auto
end()
const
{
return
map.keyEnd(); }
19
};
20
21
template
<
typename
T>
22
auto
QMap_keys(
const
T& t)
23
{
24
return
QMapKeyAdaptor<T>
{t};
25
}
QMapKeyAdaptor
Definition:
QMapHelper.hpp:13