Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
811b79b5
Commit
811b79b5
authored
Oct 24, 2020
by
Praetorius, Simon
Browse files
some simple cleanup of the type_traits
parent
7ee95763
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/common/TypeTraits.hpp
View file @
811b79b5
...
...
@@ -13,14 +13,14 @@ namespace AMDiS
*
* Note: This is a backport of c++20 std::remove_cvref
**/
template
<
class
T
>
template
<
class
T
>
struct
remove_cvref
{
using
type
=
std
::
remove_cv_t
<
std
::
remove_reference_t
<
T
>>
;
};
/// Helper alias template for \ref remove_cvref
template
<
class
T
>
template
<
class
T
>
using
remove_cvref_t
=
typename
remove_cvref
<
T
>::
type
;
namespace
Impl
...
...
@@ -116,8 +116,6 @@ namespace AMDiS
}
template
<
bool
...
b
>
using
enable_if_all_t
=
std
::
enable_if_t
<
std
::
is_same_v
<
std
::
integer_sequence
<
bool
,
true
,
b
...
>
,
std
::
integer_sequence
<
bool
,
b
...,
true
>>>
;
using
enable_if_all_t
=
std
::
enable_if_t
<
(
b
&&
...)
>
;
}
// end namespace AMDiS
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment