meta: when_all added and minor changes to selection.h
This commit is contained in:
@@ -67,6 +67,24 @@ namespace meta{
|
||||
using if_ = if_c<If::type::value, Args...>;
|
||||
|
||||
//! @}
|
||||
|
||||
/*!
|
||||
* Named type selectors
|
||||
*/
|
||||
//! @{
|
||||
|
||||
//! Select the first type of a type sequence
|
||||
template <typename T1, typename ...>
|
||||
struct first_of {
|
||||
using type = T1;
|
||||
};
|
||||
//! Select the second type of a type sequence
|
||||
template <typename T1, typename T2, typename ...>
|
||||
struct second_of {
|
||||
using type = T2;
|
||||
};
|
||||
|
||||
//! @}
|
||||
}}
|
||||
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user