Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
ItemsAccessor.h
Go to the documentation of this file.
1
#ifndef ZSERIO_ITEMS_ACCESSOR_INC_H
2
#define ZSERIO_ITEMS_ACCESSOR_INC_H
3
4
#include "
Traits.h
"
5
6
namespace
zserio
7
{
8
9
template
<
typename
T,
typename
=
void
>
10
struct
ItemsAccessor
;
11
12
template
<
typename
T>
13
struct
ItemsAccessor
<T,
std
::enable_if_t<std::is_enum_v<T>>>
14
{
15
using
Items
= T;
16
};
17
18
template
<
typename
T>
19
struct
ItemsAccessor
<T,
std
::enable_if_t<zserio::is_bitmask_v<T>>>
20
{
21
using
Items
=
typename
T::Values;
22
};
23
24
}
// namespace zserio
25
26
#endif
// ZSERIO_ITEMS_ACCESSOR_INC_H
Traits.h
std
Definition:
BitBuffer.h:602
zserio
Definition:
AllocatorHolder.h:8
zserio::ItemsAccessor< T, std::enable_if_t< std::is_enum_v< T > > >::Items
T Items
Definition:
ItemsAccessor.h:15
zserio::ItemsAccessor< T, std::enable_if_t< zserio::is_bitmask_v< T > > >::Items
typename T::Values Items
Definition:
ItemsAccessor.h:21
zserio::ItemsAccessor
Definition:
ItemsAccessor.h:10
zserio
ItemsAccessor.h
Generated by
1.9.1