Dakota  Version 7.0
Explore and Predict with Confidence
Public Types | Public Member Functions | List of all members
DefaultGenericFactoryErrorPolicy< Key, CreateFun > Struct Template Reference
Inheritance diagram for DefaultGenericFactoryErrorPolicy< Key, CreateFun >:
GenericFactory< Key, CreateFun, ErrorPolicy >

Public Types

using return_type = typename FunctionInfo< CreateFun >::return_type
 

Public Member Functions

template<typename... CreateArgs>
return_type on_unknown_key (const Key &, CreateArgs &&...) const
 

Detailed Description

template<typename Key, typename CreateFun>
struct Dakota::Util::DefaultGenericFactoryErrorPolicy< Key, CreateFun >

The default error policy for GenericFactory. This error policy will return a default-constructed value of the same type as the CreateFun's return type in the case of error.

Template Parameters
Keythe lookup key; any hashable type is allowed
CreateFunthe type of function for creating factory items

The documentation for this struct was generated from the following file: