ALib C++ Library
by
Library Version:
2510 R0
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
alib
enumops
iterablebitset.inl
Go to the documentation of this file.
1
//==================================================================================================
2
/// \file
3
/// This header-file is part of the module \alib_enumops of the \aliblong.
4
///
5
/// \emoji :copyright: 2013-2025 A-Worx GmbH, Germany.
6
/// Published under \ref mainpage_license "Boost Software License".
7
//==================================================================================================
8
ALIB_EXPORT
namespace
alib
{
namespace
enumops
{
9
10
//==================================================================================================
11
/// This is a type alias (using statement) that is available (enabled) for enumerations for
12
/// which the type trait \alib{enumops;IterableTraits} is specialized.
13
/// With this, the interface methods of templated class \alib{lang;TBitSet} accept and return
14
/// enumeration elements.
15
///
16
/// @see For a quick tutorial on the use of this type, see chapter
17
/// \ref alib_enums_iter_bitset "3.5 Using Class TBitSet with Iterable Enums" of the Programmer's
18
/// Manual of the module \alib_enumops_nl.
19
///
20
/// @tparam TEnum The enum type to use with class \alib{lang;TBitSet}.
21
//==================================================================================================
22
template
<
typename
TEnum>
23
requires
alib::enumops::IsIterable<TEnum>
24
using
EnumBitSet
=
lang::TBitSet<TEnum, IterableTraits<TEnum>::End
,
25
IterableTraits<TEnum>::Begin
>;
26
}
// namespace alib[::enumops::]
27
28
/// Type alias in namespace \b alib.
29
/// @see For more information, consult type definition \alib{enumops;EnumBitSet}.
30
template
<
typename
TEnum>
31
requires
alib::enumops::IsIterable<TEnum>
32
using
EnumBitSet
=
lang::TBitSet<TEnum, enumops::IterableTraits<TEnum>::End
,
33
enumops::IterableTraits<TEnum>::Begin
>;
34
35
}
// namespace [alib]
alib::lang::TBitSet
Definition
bitset.inl:64
alib::enumops::IsIterable
Definition
iterable.inl:78
ALIB_EXPORT
#define ALIB_EXPORT
Definition
alib.inl:488
alib::enumops
Definition
arithmetical.inl:8
alib::enumops::EnumBitSet
lang::TBitSet< TEnum, IterableTraits< TEnum >::End, IterableTraits< TEnum >::Begin > EnumBitSet
Definition
iterablebitset.inl:24
alib
Definition
ALib.Boxing.StdFunctors.H:18
alib::EnumBitSet
lang::TBitSet< TEnum, enumops::IterableTraits< TEnum >::End, enumops::IterableTraits< TEnum >::Begin > EnumBitSet
Definition
iterablebitset.inl:32
alib::enumops::IterableTraits::Begin
static constexpr TEnum Begin
Definition
iterable.inl:59