]> Git Repo - VerusCoin.git/blame - src/common/utils.tcc
Squashed 'src/snark/' content from commit 9ada3f8
[VerusCoin.git] / src / common / utils.tcc
CommitLineData
51e44864
JG
1/** @file
2 *****************************************************************************
3 Implementation of templatized utility functions
4 *****************************************************************************
5 * @author This file is part of libsnark, developed by SCIPR Lab
6 * and contributors (see AUTHORS).
7 * @copyright MIT license (see LICENSE file)
8 *****************************************************************************/
9
10#ifndef UTILS_TCC_
11#define UTILS_TCC_
12
13namespace libsnark {
14
15template<typename T>
16size_t size_in_bits(const std::vector<T> &v)
17{
18 return v.size() * T::size_in_bits();
19}
20
21} // libsnark
22
23#endif // UTILS_TCC_
This page took 0.023062 seconds and 4 git commands to generate.