mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
8 lines
201 B
C++
8 lines
201 B
C++
|
#pragma once
|
||
|
|
||
|
#include <cstdlib>
|
||
|
|
||
|
/** \brief Returns number of elements in an automatic array. */
|
||
|
template <typename T, std::size_t N>
|
||
|
constexpr size_t arraySize(const T (&)[N]) noexcept { return N; }
|