ryujin 2.1.1 revision dbf0e3ba7acdb60b6d558e4257815df4a8f8daf9
observer_pointer.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2020 - 2023 by the ryujin authors
4//
5
6#pragma once
7
8#include <deal.II/base/config.h>
9
10#if DEAL_II_VERSION_GTE(9, 7, 0)
11#include <deal.II/base/enable_observer_pointer.h>
12#include <deal.II/base/observer_pointer.h>
13
14#else
15
16#include <deal.II/base/smartpointer.h>
17#include <deal.II/base/subscriptor.h>
18
19DEAL_II_NAMESPACE_OPEN
20
21template <typename T, typename P = void>
22using ObserverPointer = SmartPointer<T, P>;
23
24using EnableObserverPointer = Subscriptor;
25DEAL_II_NAMESPACE_CLOSE
26
27#endif
Subscriptor EnableObserverPointer
SmartPointer< T, P > ObserverPointer