dune-vtk 2.8
Loading...
Searching...
No Matches
enum.hh
Go to the documentation of this file.
1#pragma once
2
3#include <type_traits>
4
5namespace 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
Definition: writer.hh:13
constexpr bool is_a(E a, Integer b)
Definition: enum.hh:12