/* * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include template constexpr size_t arrayCount(const T (&)[n]) { return n; } template constexpr bool isInRange(size_t idx, const T (&)[n]) { return (idx < n); }