#include "tensorstore/stack.h"
template <
    
typename Layers = std::vector<std::variant<Spec, TensorStore<>>>>
auto tensorstore::Overlay(const Layers& layers,
                          
StackOpenOptions&& options);
template <
    
typename Layers = std::vector<std::variant<Spec, TensorStore<>>>,
    typename... Option>
  
requires IsCompatibleOptionSequence<StackOpenOptions, Option...>
auto tensorstore::Overlay(const Layers& layers, Option&&... option);

Virtually overlays a sequence of TensorStore or Spec layers within a common domain.

Parameters:
const Layers &layers

Sequence of layers to overlay. Later layers take precedence.

StackOpenOptions &&options

Options for opening the overlay view.

Option&&... option

Individual option compatible with StackOpenOptions.

Returns:

The overlaid TensorStore<Element, Rank, Mode> if the layer value type is TensorStore<Element, Rank, Mode>, or TensorStore<> otherwise.