ComPPare 1.0.0
Loading...
Searching...
No Matches
comppare::outspec< Value, void > Struct Template Reference

Partial specialization of outspec for automatic error policy selection. More...

#include <comppare.hpp>

Public Types

using outtype_t = std::decay_t< Value >
 
using policy_t = internal::policy::autopolicy::AutoPolicy_t< Value >
 

Detailed Description

template<typename Value>
requires internal::policy::autopolicy::SupportedByAutoPolicy<Value>
struct comppare::outspec< Value, void >

Partial specialization of outspec for automatic error policy selection.

This specialization is used when the user provides only a value type:

OutputContext class template to hold output parameters and manage implementations.
Definition comppare.hpp:292

Therefore, the framework normalises each output type to a outspec<Value, void>:

Specification struct for pairing an output type with an error policy.
Definition comppare.hpp:192

This specialization matches outspec<Value, void> and uses AutoPolicy_t<Value> to deduce the error policy for the given value type.

Note
See documentation of outspec for greater overview on the design choices.
See also
outspec for greater overview on the design choices.
Template Parameters
Value

Member Typedef Documentation

◆ outtype_t

template<typename Value >
using comppare::outspec< Value, void >::outtype_t = std::decay_t<Value>

◆ policy_t

template<typename Value >
using comppare::outspec< Value, void >::policy_t = internal::policy::autopolicy::AutoPolicy_t<Value>

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