preCICE v3.1.2
Loading...
Searching...
No Matches
traits.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <type_traits>
4
5namespace precice {
6namespace utils {
7
8// Implementation of C++17 std::conjunction taken from https://en.cppreference.com/w/cpp/types/conjunction
9template <class...>
12
13template <class B1>
14struct conjunction<B1> : B1 {
15};
16
17template <class B1, class... Bn>
18struct conjunction<B1, Bn...>
19 : std::conditional<bool(B1::value), conjunction<Bn...>, B1>::type {
20};
21
22template <class F, class... Inputs>
24};
25
26template <class P, class A1, class... A>
27struct transform;
28
29} // namespace utils
30} // namespace precice
Main namespace of the precice library.