Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
shambase::has_bitlen< T, num > Struct Template Reference

Check if a type has a certain number of bits. More...

#include <shambase/include/shambase/type_traits.hpp>

Static Public Attributes

static constexpr bool value = bitsizeof<T> == num
 True if bitlen of T is equal to num.
 

Detailed Description

template<typename T, int num>
struct shambase::has_bitlen< T, num >

Check if a type has a certain number of bits.

This struct template provides a static constexpr bool member value which is true if the type T has num bits.

Template Parameters
Ttype to check
numnumber of bits

Definition at line 45 of file type_traits.hpp.

Member Data Documentation

◆ value

template<typename T , int num>
constexpr bool shambase::has_bitlen< T, num >::value = bitsizeof<T> == num
staticconstexpr

True if bitlen of T is equal to num.

Definition at line 47 of file type_traits.hpp.


The documentation for this struct was generated from the following file: