Utils.h revision d1f87057301c06815d519383ea2289df4bcffa5b
1//===-- Utils.h -------------------------------------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef utility_Utils_h_
11#define utility_Utils_h_
12
13namespace lldb_private {
14
15// Return the number of elements of a static array.
16template <typename T, unsigned size>
17inline unsigned arraysize(T (&v)[size]) { return size; }
18
19} // namespace lldb_private
20#endif // utility_Utils
21