Reference documentation for deal.II version GIT relicensing-384-g4769914377 2024-04-13 09:00:02+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: 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// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14#ifndef dealii_cxx20_type_traits_h
15#define dealii_cxx20_type_traits_h
16
17#include <deal.II/base/config.h>
18
19#ifdef DEAL_II_HAVE_CXX20
20# include <type_traits>
21#endif
22
24
25namespace std_cxx20
26{
27#ifdef DEAL_II_HAVE_CXX20
28 using std::type_identity;
29 using std::type_identity_t;
30#else
88 template <typename T>
90 {
91 using type = T;
92 };
93
94 template <class T>
96
97#endif
98} // namespace std_cxx20
99
101
102#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
typename type_identity< T >::type type_identity_t
Definition type_traits.h:95