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
Gauthier Quesnel
irritator
Commits
0575b836
Commit
0575b836
authored
May 11, 2020
by
Gauthier Quesnel
Browse files
core: add a match template function
parent
81785022
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/core.hpp
View file @
0575b836
...
...
@@ -127,6 +127,13 @@ is_status_equal(status s, Args... args) noexcept
return
((
s
==
args
)
||
...
||
false
);
}
template
<
typename
T
,
typename
...
Args
>
constexpr
bool
match
(
const
T
&
s
,
Args
...
args
)
noexcept
{
return
((
s
==
args
)
||
...
||
false
);
}
#ifndef NDEBUG
#if (defined(__i386__) || defined(__x86_64__)) && defined(__GNUC__) && \
__GNUC__ >= 2
...
...
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