-
#include "tensorstore/kvstore/spec.h"
-
template <typename... Option>
requires IsCompatibleOptionSequence<SpecConvertOptions, Option...>
absl::Status tensorstore::kvstore::Spec::Set(Option&&... option); -
absl::Status
tensorstore::kvstore::Spec::Set(SpecConvertOptions&& options); Mutates this spec according to the specified options.
Options may be specified in any order and are identified by their type. Supported option types are:
ContextBindingMode: Defaults to
ContextBindingMode::retain
, which does nothing. SpecifyingContextBindingMode::unbind
is equivalent to callingUnbindContext
. SpecifyingContextBindingMode::strip
is equivalent to callingStripContext
.Context: If a non-null context is specified, any unbound context resources are resolved using the specified context, equivalent to calling
BindContext
. If not specified, unbound context resources remain unmodified. IfContextBindingMode::unbind
orContextBindingMode::strip
is specified along with this option, the unbind or strip operation is performed before re-binding with the specified context.
If an error occurs, the spec may be left in a partially modified state.
- Parameters:¶
- Option&&... option¶
Any option type supported by
SpecConvertOptions
.