flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
which.hpp File Reference
#include "pp_map.hpp"
#include <utility>
#include <type_traits>
Include dependency graph for which.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  flexiblesusy
 

Macros

#define LAMBDA(expr)   [&](){ return expr; }
 
#define WHICH(...)   lazy_which(MAP_LIST(LAMBDA, __VA_ARGS__))
 

Functions

template<typename If , typename Then >
auto flexiblesusy::lazy_which (If &&cif, Then &&cthen) -> decltype(cthen())
 
template<typename If , typename Then , typename... Elses>
auto flexiblesusy::lazy_which (If &&cif, Then &&cthen, Elses &&... celses) -> typename std::common_type< decltype(cthen()), decltype(celses())... >::type
 

Macro Definition Documentation

◆ LAMBDA

#define LAMBDA (   expr)    [&](){ return expr; }

Definition at line 28 of file which.hpp.

◆ WHICH

#define WHICH (   ...)    lazy_which(MAP_LIST(LAMBDA, __VA_ARGS__))

Definition at line 30 of file which.hpp.