type_list
type_list
Section titled “type_list”#include <sbio/core/roles.hh>template<typename... Ts>struct type_listDefined in src/lib/sbio/core/roles.hh:84
Public Static Attributes
Section titled “Public Static Attributes”| Return | Name | Description |
|---|---|---|
constexpr hd_std::ptrdiff_t |
index_of static constexpr |
|
constexpr bool |
accepts static constexpr |
Evaluates true if the type U is in the type list. |
index_of
Section titled “index_of”static constexpr
constexpr hd_std::ptrdiff_t index_of = (sizeof...(Ts) == 0) ? -1 : index_of_impl<Target, 0, Ts...>::valueDefined in src/lib/sbio/core/roles.hh:112
accepts
Section titled “accepts”static constexpr
constexpr bool accepts = (sizeof...(Ts) == 0) || IsInList<U, Ts...>Defined in src/lib/sbio/core/roles.hh:120
Evaluates true if the type U is in the type list.
Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
SBIO_HD constexpr hd_std::size_t |
size static inline constexpr |
Returns the length of the type list, i.e., the number of types. |
static inline constexpr
constexpr static inline SBIO_HD constexpr hd_std::size_t size()Defined in src/lib/sbio/core/roles.hh:109
Returns the length of the type list, i.e., the number of types.
Returns
Section titled “Returns”The length of the type list.