MaybeUseFunction.h
Go to the documentation of this file.
1 #ifndef fhiclcpp_types_MaybeUseFunction_h
2 #define fhiclcpp_types_MaybeUseFunction_h
3 
4 #include <functional>
5 
6 namespace fhicl {
7  struct MaybeUseFunction {
8  explicit MaybeUseFunction(std::function<bool()> func) : value{func} {}
9  operator std::function<bool()>() const { return value; }
10  std::function<bool()> value;
11  };
12 }
13 
14 #endif /* fhiclcpp_types_MaybeUseFunction_h */
const XML_Char int const XML_Char * value
Definition: expat.h:331
std::function< bool()> value
double func(double x, double y)
MaybeUseFunction(std::function< bool()> func)