ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
Loading...
Searching...
No Matches
observer_pointer.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2025 - 2026 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