TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
concepts.hpp
Go to the documentation of this file.
1// Copyright (c) 2020--present, The Simons Foundation
2// This file is part of TRIQS/nda and is licensed under the Apache License, Version 2.0.
3// SPDX-License-Identifier: Apache-2.0
4// See LICENSE in the root of this distribution for details.
5
10
11#pragma once
12
13#include <version>
14
15// libcpp below 13 has incomplete <concepts>
16#if defined(_LIBCPP_VERSION) and _LIBCPP_VERSION < 13000
17
18#include <type_traits>
19
20namespace std {
21
22 template <class T>
23 concept integral = std::is_integral_v<T>;
24
25} // namespace std
26
27#endif