Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Core Modules
dune-common
Commits
efaac498
Commit
efaac498
authored
9 years ago
by
Felix Gruber
Committed by
Christoph Grüninger
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] use std implementations of is_pointer and is_lvalue_reference
parent
526f8970
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/typetraits.hh
+2
-31
2 additions, 31 deletions
dune/common/typetraits.hh
with
2 additions
and
31 deletions
dune/common/typetraits.hh
+
2
−
31
View file @
efaac498
...
...
@@ -178,37 +178,8 @@ namespace Dune
using
std
::
integral_constant
;
using
std
::
true_type
;
using
std
::
false_type
;
template
<
typename
>
struct
__is_pointer_helper
:
public
false_type
{
};
template
<
typename
T
>
struct
__is_pointer_helper
<
T
*>
:
public
true_type
{
};
/// is_pointer
template
<
typename
T
>
struct
is_pointer
:
public
integral_constant
<
bool
,
(
__is_pointer_helper
<
T
>::
value
)
>
{
};
// Helper class for is_lvalue_reference
template
<
typename
>
struct
__is_lvalue_reference_helper
:
public
false_type
{
};
template
<
typename
T
>
struct
__is_lvalue_reference_helper
<
T
&>
:
public
true_type
{
};
/** \brief Determine whether a type is a lvalue reference type */
template
<
typename
T
>
struct
is_lvalue_reference
:
public
integral_constant
<
bool
,
(
__is_lvalue_reference_helper
<
T
>::
value
)
>
{
};
using
std
::
is_pointer
;
using
std
::
is_lvalue_reference
;
using
std
::
remove_pointer
;
/**
...
...
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