Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
amdis
amdis-core
Commits
49e6913c
Commit
49e6913c
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
added remove_cvref_t type-traits
parent
753849bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/amdis/common/TypeTraits.hpp
+18
-0
18 additions, 0 deletions
src/amdis/common/TypeTraits.hpp
with
18 additions
and
0 deletions
src/amdis/common/TypeTraits.hpp
+
18
−
0
View file @
49e6913c
...
...
@@ -12,6 +12,24 @@
namespace
AMDiS
{
/// \brief Remove cv and ref qualifiers of type T.
/**
* If the type T is a reference type, provides the member typedef type which
* is the type referred to by T with its topmost cv-qualifiers removed.
* Otherwise type is T with its topmost cv-qualifiers removed.
*
* Note: This is a backport of c++20 std::remove_cvref
**/
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
>
using
remove_cvref_t
=
typename
remove_cvref
<
T
>::
type
;
namespace
Impl
{
template
<
class
T
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment