// Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary // source code may only be used and distributed under the Widevine License // Agreement. #ifndef WVCDM_UTIL_ARRAYSIZE_H_ #define WVCDM_UTIL_ARRAYSIZE_H_ #include namespace wvutil { // Returns the size of a fixed-length array. template constexpr size_t ArraySize(const T (&)[N]) { return N; } } // namespace wvutil #endif // WVCDM_UTIL_ARRAYSIZE_H_