6 #include <launchdarkly/data/evaluation_reason.hpp>
8 namespace launchdarkly {
27 std::optional<std::size_t> variation_index,
28 std::optional<EvaluationReason> reason);
50 [[nodiscard]] T
const&
Value()
const;
61 [[nodiscard]]
bool IsError()
const;
66 [[nodiscard]] std::optional<EvaluationReason>
const&
Reason()
const;
75 std::optional<std::size_t> variation_index_;
76 std::optional<EvaluationReason> reason_;
89 std::optional<std::size_t> variation_index;
90 std::optional<EvaluationReason> reason;
Definition: evaluation_detail.hpp:18
std::optional< EvaluationReason > const & Reason() const
Definition: evaluation_detail.cpp:34
std::optional< std::size_t > VariationIndex() const
Definition: evaluation_detail.cpp:39
T const & operator*() const
Definition: evaluation_detail.cpp:43
EvaluationDetail(T value, std::optional< std::size_t > variation_index, std::optional< EvaluationReason > reason)
T const & Value() const
Definition: evaluation_detail.cpp:29
bool IsError() const
Definition: evaluation_detail.cpp:48
Definition: evaluation_reason.hpp:13
ErrorKind
Definition: evaluation_reason.hpp:39
Definition: evaluation_detail.hpp:85