forked from Alepha/Alepha
Update pair_decay
to new namespace format.
This commit is contained in:
@ -8,29 +8,24 @@ static_assert( __cplusplus > 2020'00 );
|
||||
|
||||
#include <Alepha/Stud/type_traits.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Meta
|
||||
namespace Alepha::Hydrogen::Meta ::detail::type_traits::pair_decay_trait
|
||||
{
|
||||
inline namespace exports { inline namespace type_traits {} }
|
||||
|
||||
namespace detail::type_traits::pair_decay_trait
|
||||
inline namespace exports
|
||||
{
|
||||
inline namespace exports
|
||||
template< typename T > struct pair_decay;
|
||||
|
||||
template< typename First, typename Second >
|
||||
struct pair_decay< std::pair< First, Second > >
|
||||
{
|
||||
template< typename T > struct pair_decay;
|
||||
using type= std::pair< Stud::decay_t< First >, Stud::decay_t< Second > >;
|
||||
};
|
||||
|
||||
template< typename First, typename Second >
|
||||
struct pair_decay< std::pair< First, Second > >
|
||||
{
|
||||
using type= std::pair< Stud::decay_t< First >, Stud::decay_t< Second > >;
|
||||
};
|
||||
|
||||
template< typename T >
|
||||
using pair_decay_t= typename pair_decay< T >::type;
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::type_traits::inline pair_decay_trait
|
||||
{
|
||||
using namespace detail::type_traits::pair_decay_trait::exports;
|
||||
template< typename T >
|
||||
using pair_decay_t= typename pair_decay< T >::type;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Meta::inline exports::inline type_traits::inline pair_decay_trait
|
||||
{
|
||||
using namespace detail::type_traits::pair_decay_trait::exports;
|
||||
}
|
||||
|
Reference in New Issue
Block a user