deal.II version GIT relicensing-7075-gaa980f2bfe 2026-11-16 20:40:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
type_traits.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12#ifndef dealii_cxx20_type_traits_h
13#define dealii_cxx20_type_traits_h
14
15#include <deal.II/base/config.h>
16
17#ifdef DEAL_II_HAVE_CXX20
18# include <type_traits>
19#endif
20
22
23namespace std_cxx20
24{
25#ifdef DEAL_II_HAVE_CXX20
26 using std::type_identity;
27 using std::type_identity_t;
28#else
86 template <typename T>
88 {
89 using type = T;
90 };
91
92 template <class T>
94
95#endif
96} // namespace std_cxx20
97
99
100#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
typename type_identity< T >::type type_identity_t
Definition type_traits.h:93