/* * Copyright (C) 2020-2021 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); }