#include "tensorstore/context.h"
explicit tensorstore::Context::Context(const Spec& spec,
                                       
Context parent = {});

Constructs a context from a Spec.

The actual resources are created lazily as needed.

If spec is default-constructed and parent is non-null, returns parent directly without creating a new child context.

Parameters:
const Spec &spec

The context spec.

Context parent = {}

The parent context to extend. Specifying a null context is equivalent to specifying Default(), except that parent() is null.