dune-common
2.11
Loading...
Searching...
No Matches
dune
common
concepts
number.hh
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4
// vi: set et ts=4 sw=2 sts=2:
5
#ifndef DUNE_COMMON_CONCEPTS_NUMBER_HH
6
#define DUNE_COMMON_CONCEPTS_NUMBER_HH
7
8
#include <
dune/common/typetraits.hh
>
9
10
namespace
Dune::Concept
{
11
33
template
<
class
N>
34
concept
Number
=
Dune::IsNumber<N>::value
;
35
36
}
// end namespace Dune::Concept
37
38
#endif
// DUNE_COMMON_CONCEPTS_NUMBER_HH
typetraits.hh
Traits for type conversions and type information.
Dune::Concept
Namespace for concepts.
Definition
concept.hh:33
Dune::IsNumber
Whether this type acts as a scalar in the context of (hierarchically blocked) containers.
Definition
typetraits.hh:194
Dune::Concept::Number
The Number concept is satisfied if the type N can act as a scalar in the context of (hierarchically b...
Definition
number.hh:34
Generated by
1.15.0