PDFxTMDLib  1.0.0
InterfaceUtils.h
Go to the documentation of this file.
1 #pragma once
2 
3 #define KT_T double
4 #define X_T double
5 #define MU_T double
6 
7 namespace PDFxTMD
8 {
9 // Base CRTP helper
10 template <typename Derived> class CRTPBase
11 {
12  public:
13  constexpr Derived &derived() noexcept
14  {
15  return static_cast<Derived &>(*this);
16  }
17 
18  constexpr const Derived &derived() const noexcept
19  {
20  return static_cast<const Derived &>(*this);
21  }
22 };
23 } // namespace PDFxTMD
Definition: InterfaceUtils.h:11
constexpr Derived & derived() noexcept
Definition: InterfaceUtils.h:13
constexpr const Derived & derived() const noexcept
Definition: InterfaceUtils.h:18
Definition: AllFlavorsShape.h:14