SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
bits_of.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
4 // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5 // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6 // -----------------------------------------------------------------------------------------------------
7 
14 #pragma once
15 
16 #include <climits>
17 
19 
20 namespace seqan3::detail
21 {
22 
28 template <typename type_t>
29 constexpr auto bits_of = min_viable_uint_v<CHAR_BIT * sizeof(type_t)>;
30 
31 } // namespace seqan3::detail
Provides metaprogramming utilities for integer types.