dune-vtk 2.12
Loading...
Searching...
No Matches
enum.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
3#pragma once
4
5#include <type_traits>
6
7namespace Dune::Vtk
8{
9 template <class E, class Integer,
11 constexpr bool is_a(E a, Integer b)
12 {
13 return (int(a) & int(b)) != 0;
14 }
15
16} // end namespace Dune::Vtk
Definition datacollector.hh:19
constexpr bool is_a(E a, Integer b)
Definition enum.hh:11
Implementation of DataCollector for cells, with continuous data.
Definition celltypedatacollector.hh:20