deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20: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
iota_view.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) 2020 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_iota_view_h
13#define dealii_cxx20_iota_view_h
14
15#include <deal.II/base/config.h>
16
17#ifdef DEAL_II_HAVE_CXX20
18# include <ranges>
19#else
20# include <boost/range/irange.hpp>
21#endif
22
24
25namespace std_cxx20
26{
27 namespace ranges
28 {
29#ifndef DEAL_II_HAVE_CXX20
42 template <typename IncrementableType, typename /*BoundType*/>
43 using iota_view = boost::integer_range<IncrementableType>;
44#else
45 using std::ranges::iota_view;
46#endif
47 } // namespace ranges
48} // namespace std_cxx20
49
51
52#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
boost::integer_range< IncrementableType > iota_view
Definition iota_view.h:43