Provides various type traits and their shortcuts. More...
Macros | |
#define | SEQAN3_IS_CONSTEXPR(...) std::integral_constant<bool, __builtin_constant_p((__VA_ARGS__, 0))>::value |
Returns true if the expression passed to this macro can be evaluated at compile time, false otherwise. More... | |
#define | SEQAN3_IS_SAME(...) std::is_same_v<__VA_ARGS__> |
A macro that behaves like std::is_same_v, except that it doesn't need to instantiate the template on GCC and Clang. | |
Typedefs | |
template<typename t > | |
using | seqan3::const_reference_t = typename const_reference< t >::type |
Shortcut for seqan3::const_reference (transformation_trait shortcut). More... | |
template<typename t > | |
using | seqan3::difference_type_t = typename difference_type< t >::type |
Shortcut for seqan3::difference_type (transformation_trait shortcut). More... | |
template<typename t > | |
using | seqan3::innermost_value_type_t = typename innermost_value_type< t >::type |
Shortcut for seqan3::innermost_value_type (transformation_trait shortcut). More... | |
template<typename it_t > | |
using | seqan3::iterator_tag_t = typename iterator_tag< it_t >::type |
Return the iterator_category type of the input type (transformation_trait shortcut). More... | |
template<typename t > | |
using | seqan3::reference_t = typename reference< t >::type |
Shortcut for seqan3::reference (transformation_trait shortcut). More... | |
template<typename t > | |
using | seqan3::remove_cvref_t = std::remove_cv_t< std::remove_reference_t< t > > |
Return the input type with const , volatile and references removed (type trait). More... | |
template<typename t > | |
using | seqan3::remove_rvalue_reference_t = typename remove_rvalue_reference< t >::type |
Return the input type with && removed, but lvalue references preserved (transformation_trait shortcut). More... | |
template<typename t > | |
using | seqan3::rvalue_reference_t = typename rvalue_reference< t >::type |
Shortcut for seqan3::rvalue_reference (transformation_trait shortcut). More... | |
template<typename t > | |
using | seqan3::size_type_t = typename size_type< t >::type |
Shortcut for seqan3::size_type (transformation_trait shortcut). More... | |
template<typename t > | |
using | seqan3::value_type_t = typename value_type< t >::type |
Shortcut for seqan3::value_type (transformation_trait shortcut). More... | |
Variables | |
template<typename t > | |
constexpr size_t | seqan3::dimension_v = 1 |
Returns the number of times you can call seqan3::value_type_t recursively on t (type trait). More... | |
template<typename t > | |
constexpr bool | is_constexpr_default_constructible_v = is_constexpr_default_constructible<t>::value |
Whether a type std::is_default_constructible in constexpr -context (unary_type_trait shortcut). More... | |
Provides various type traits and their shortcuts.
#define SEQAN3_IS_CONSTEXPR | ( | ... | ) | std::integral_constant<bool, __builtin_constant_p((__VA_ARGS__, 0))>::value |
Returns true if the expression passed to this macro can be evaluated at compile time, false otherwise.
using seqan3::const_reference_t = typedef typename const_reference<t>::type |
Shortcut for seqan3::const_reference (transformation_trait shortcut).
t | The type you wish to query. |
using seqan3::difference_type_t = typedef typename difference_type<t>::type |
Shortcut for seqan3::difference_type (transformation_trait shortcut).
t | The type you wish to query. |
using seqan3::innermost_value_type_t = typedef typename innermost_value_type<t>::type |
Shortcut for seqan3::innermost_value_type (transformation_trait shortcut).
using seqan3::iterator_tag_t = typedef typename iterator_tag<it_t>::type |
Return the iterator_category
type of the input type (transformation_trait shortcut).
it_t | The type to operate on. |
using seqan3::reference_t = typedef typename reference<t>::type |
Shortcut for seqan3::reference (transformation_trait shortcut).
t | The type you wish to query. |
using seqan3::remove_cvref_t = typedef std::remove_cv_t<std::remove_reference_t<t> > |
Return the input type with const
, volatile
and references removed (type trait).
t | The type to operate on. |
using seqan3::remove_rvalue_reference_t = typedef typename remove_rvalue_reference<t>::type |
Return the input type with &&
removed, but lvalue references preserved (transformation_trait shortcut).
t | The type to operate on. |
using seqan3::rvalue_reference_t = typedef typename rvalue_reference<t>::type |
Shortcut for seqan3::rvalue_reference (transformation_trait shortcut).
t | The type you wish to query. |
using seqan3::size_type_t = typedef typename size_type<t>::type |
Shortcut for seqan3::size_type (transformation_trait shortcut).
t | The type you wish to query. |
using seqan3::value_type_t = typedef typename value_type<t>::type |
Shortcut for seqan3::value_type (transformation_trait shortcut).
t | The type you wish to query. |
|
constexpr |
Returns the number of times you can call seqan3::value_type_t
recursively on t (type trait).
t | The type to be queried; must resolve seqan3::value_type_t at least once. |
Attention, this type trait implicitly removes cv-qualifiers and reference from the types it recurses on and returns.
|
related |
Whether a type std::is_default_constructible in constexpr
-context (unary_type_trait shortcut).
t | The type to operate on. |