mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +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; }
|