mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 03:53:41 +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; }
|