Flutter Engine
size.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_FML_SIZE_H_
6 #define FLUTTER_FML_SIZE_H_
7 
8 #include <cstddef>
9 
10 namespace fml {
11 
12 template <typename T, std::size_t N>
13 constexpr std::size_t size(T (&array)[N]) {
14  return N;
15 }
16 
17 } // namespace fml
18 
19 #endif // FLUTTER_FML_SIZE_H_
constexpr std::size_t size(T(&array)[N])
Definition: size.h:13
Definition: ascii_trie.cc:9