/* * Copyright 2015 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef API_ARRAY_VIEW_H_ #define API_ARRAY_VIEW_H_ #include #include #include "absl/base/macros.h" namespace webrtc { // A parameter pack of extents is used to ensure that ArrayView inlines to // span, but only 0 or 1 extent is supported. template using ArrayView ABSL_DEPRECATE_AND_INLINE() = std::span; template ABSL_DEPRECATE_AND_INLINE() inline std::span MakeArrayView(T* data, size_t size) { return std::span(data, size); } } // namespace webrtc #endif // API_ARRAY_VIEW_H_