#include "tensorstore/util/result.h"
template <typename T>
using tensorstore::UnwrapQualifiedResultType;

As above, preserving const / volatile / reference qualifiers.