dune-vtk
0.2
dune-vtk-38f79c23ef8f29210d41353a8380e42b78422f2f
dune
vtk
utility
enum.hh
Go to the documentation of this file.
1
#pragma once
2
3
#include <type_traits>
4
5
namespace
Dune
6
{
7
namespace
Vtk
8
{
9
10
template
<
class
E,
class
Integer,
11
std::enable_if_t<std::is_enum<E>::value,
int
> = 0>
12
constexpr
bool
is_a
(E a, Integer b)
13
{
14
return
(
int
(a) &
int
(b)) != 0;
15
}
16
17
}
// end namespace Vtk
18
}
// end namespace Dune
Dune
Definition:
writer.hh:13
Dune::Vtk::is_a
constexpr bool is_a(E a, Integer b)
Definition:
enum.hh:12
Generated by
1.9.1