File getgetreturntype.h
File List > algebra > helpers > getgetreturntype.h
Go to the documentation of this file
#ifndef TEMPLAT_LATTICE_ALGEBRA_HELPERS_GETGETRETURNTYPE_H
#define TEMPLAT_LATTICE_ALGEBRA_HELPERS_GETGETRETURNTYPE_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): Wessel Valkenburg, Year: 2019
#include <type_traits>
#include "TempLat/lattice/algebra/helpers/doeval.h"
#include "TempLat/lattice/algebra/helpers/iscomplextype.h"
namespace TempLat
{
template <typename T> struct GetGetReturnType {
using type = std::decay_t<decltype(TempLat::DoEval::eval_example(std::declval<std::decay_t<T>>()))>;
static constexpr bool isComplex = IsComplexType<type>;
};
} // namespace TempLat
#endif