Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <functional>
7 : #include <utility>
8 :
9 : /// \cond
10 : namespace Spectral {
11 : enum class Basis : uint8_t;
12 : enum class Quadrature : uint8_t;
13 : } // namespace Spectral
14 : /// \endcond
15 :
16 : namespace std {
17 : template <>
18 : // NOLINTNEXTLINE(cert-dcl58-cpp)
19 : struct hash<std::pair<Spectral::Basis, Spectral::Quadrature>> {
20 : size_t operator()(
21 : const std::pair<Spectral::Basis, Spectral::Quadrature>& p) const;
22 : };
23 : } // namespace std
|