C++ Client-Side SDK
LaunchDarkly SDK
|
#include <evaluation_detail_internal.hpp>
Public Member Functions | |
launchdarkly::Value const & | Value () const |
std::optional< std::size_t > | VariationIndex () const |
std::optional< std::reference_wrapper< EvaluationReason const > > | Reason () const |
EvaluationDetailInternal (launchdarkly::Value value, std::optional< std::size_t > variation_index, std::optional< EvaluationReason > reason) | |
Friends | |
std::ostream & | operator<< (std::ostream &out, EvaluationDetailInternal const &detail) |
An object that combines the result of a feature flag evaluation with information about how it was calculated.
This is the result of calling one of the detailed variation methods.
For more information, see the SDK reference guide.
std::optional< std::reference_wrapper< EvaluationReason const > > launchdarkly::EvaluationDetailInternal::Reason | ( | ) | const |
An object describing the main factor that influenced the flag evaluation value.
Value const & launchdarkly::EvaluationDetailInternal::Value | ( | ) | const |
The result of the flag evaluation. This will be either one of the flag's variations or the default value that was passed to one of the detail methods.
std::optional< std::size_t > launchdarkly::EvaluationDetailInternal::VariationIndex | ( | ) | const |
The index of the returned value within the flag's list of variations, e.g. 0 for the first variation– or nullopt
if the default value was returned.