#include "tensorstore/index_interval.h"
Result<std::string_view>
tensorstore::MergeDimensionLabels(std::string_view a,
                                  
std::string_view b);

Merges two dimension labels.

The two labels are compatible if they are equal, or at most one is non-empty.

The non-empty label takes precedence.

Parameters:
std::string_view a

Label to merge.

std::string_view b

Other label to merge.

Error absl::StatusCode::kInvalidArgument:

if a and b are not compatible.