Skip to content
Snippets Groups Projects
Commit d738e179 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[common][typetraits] add noop function

parent 44051fd4
No related branches found
No related tags found
1 merge request!3608[experimental] Multistage assembler
# SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
# SPDX-License-Identifier: GPL-3.0-or-later
add_subdirectory(typetraits)
file(GLOB DUMUX_EXPERIMENTAL_COMMON_HEADERS *.hh *.inc)
install(FILES ${DUMUX_EXPERIMENTAL_COMMON_HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/experimental/common)
# SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
# SPDX-License-Identifier: GPL-3.0-or-later
file(GLOB DUMUX_EXPERIMENTAL_COMMON_TYPETRAITS_HEADERS *.hh *.inc)
install(FILES ${DUMUX_EXPERIMENTAL_COMMON_TYPETRAITS_HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/experimental/common/typetraits)
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
//
// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
// SPDX-License-Identifier: GPL-3.0-or-later
//
/*!
* \file
* \ingroup Typetraits
* \brief Type traits.
*/
#ifndef DUMUX_EXPERIMENTAL_TYPE_TRAITS_HH
#define DUMUX_EXPERIMENTAL_TYPE_TRAITS_HH
#include <type_traits>
namespace Dumux {
/*!
* \brief Function that performs no operation.
*/
inline constexpr auto noop = [] (auto...) {};
using Noop = decltype(noop);
} // end namespace Dumux
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment