#include "tensorstore/static_cast.h"
constexpr const unchecked_t tensorstore::unchecked = unchecked{};

Tag value to indicate that an unchecked cast is requested.

This tag value serves a dual purpose:

  • The primary purpose is as the second template argument to StaticCast (and other cast functions that follow the same convention) in order to indicate an unchecked conversion. This relies on the implicit conversion to CastChecking::unchecked.

  • It can also be used directly to call constructors with an unchecked_t parameter.