Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
amdis
amdis-core
Commits
3b265a63
Commit
3b265a63
authored
Jul 28, 2020
by
Müller, Felix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with pack expansion of alias template
parent
80a33364
Pipeline
#4524
failed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
amdis/common/Logical.hpp
amdis/common/Logical.hpp
+7
-13
No files found.
amdis/common/Logical.hpp
View file @
3b265a63
...
...
@@ -18,35 +18,29 @@ namespace AMDiS
// some boolean operations
// ---------------------------------------------------------------------------
namespace
Impl
{
template
<
bool
...>
struct
all_helper
{};
}
// end namespace Impl
template
<
bool
...
Bs
>
using
all_of_
t
=
bool_t
<
(
Bs
&&
...)
>
;
constexpr
bool
all_of_
v
=
(
Bs
&&
...);
template
<
bool
...
Bs
>
constexpr
bool
all_of_v
=
(
Bs
&&
...
)
;
using
all_of_t
=
bool
_t
<
all_of_v
<
Bs
...
>>
;
template
<
bool
...
Bs
>
using
and_t
=
all_of_t
<
Bs
...
>
;
template
<
bool
...
Bs
>
using
none
_of_
t
=
bool_t
<!
(
Bs
||
...)
>
;
constexpr
bool
any
_of_
v
=
(
Bs
||
...);
template
<
bool
...
Bs
>
constexpr
bool
none_of_v
=
!
(
Bs
||
...
)
;
using
any_of_t
=
bool_t
<
any_of_v
<
Bs
...
>>
;
template
<
bool
...
Bs
>
using
any_of_t
=
bool
_t
<
(
Bs
||
...
)
>
;
using
or_t
=
any_of
_t
<
Bs
...
>
;
template
<
bool
...
Bs
>
constexpr
bool
any
_of_v
=
(
Bs
||
...);
constexpr
bool
none
_of_v
=
!
(
Bs
||
...);
template
<
bool
...
Bs
>
using
or_t
=
any
_of_
t
<
Bs
...
>
;
using
none_of_t
=
bool_t
<
none
_of_
v
<
Bs
...
>
>
;
template
<
bool
...
Bs
>
...
...
Write
Preview
Markdown
is supported
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