hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
array_size.hpp File Reference

Go to the source code of this file.

Macros

#define IROHA_ARRAY_SIZE(array)   (sizeof(IrohaArraySizeHelper(array)))
 

Functions

template<typename T , size_t N>
char(& IrohaArraySizeHelper (T(&array)[N]))[N]
 

Macro Definition Documentation

◆ IROHA_ARRAY_SIZE

#define IROHA_ARRAY_SIZE (   array)    (sizeof(IrohaArraySizeHelper(array)))

Function Documentation

◆ IrohaArraySizeHelper()

template<typename T , size_t N>
char(& IrohaArraySizeHelper ( T(&)  array[N]) )[N]

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0