Skip to content

File complexgetgetreturntype.h

File List > algebra > complexalgebra > helpers > complexgetgetreturntype.h

Go to the documentation of this file

#ifndef COSMOINTERFACE_COMPLEXFIELDALGEBRA_HELPERS_COMPLEXGETGETRETURNTYPE_H
#define COSMOINTERFACE_COMPLEXFIELDALGEBRA_HELPERS_COMPLEXGETGETRETURNTYPE_H

/* This file is part of TempLat, available at https://cosmolattice.github.io/templat .
   Copyright 2021-2026 The TempLat authors, see AUTHORS.md.
   Released under the MIT license, see LICENSE.md. */

// File info: Main contributor(s): Adrien Florio, Year: 2019

#include "TempLat/lattice/algebra/helpers/getgetreturntype.h"
#include "TempLat/util/rangeiteration/tag.h"

namespace TempLat
{
  template <typename T> struct ComplexGetGetReturnType {
    using type = typename GetGetReturnType<
        std::decay_t<decltype(std::declval<T>().ComplexFieldGet(std::declval<Tag<0>>()))>>::type;

    static constexpr bool isComplex = IsComplexType<type>;
  };

} // namespace TempLat

#endif