Template Function Pennylane::Util::fillLeadingOnes
Function Documentation
-
template<class IntegerType = std::size_t>
inline constexpr auto Pennylane::Util::fillLeadingOnes(std::size_t pos) -> std::size_t
Fill ones from MSB to pos.
- Template Parameters
IntegerType – Integer type to use
- Parameters
pos – Position up to which bit one is filled.
api/function_BitUtil_8hpp_1a89f0b72c1096f36fb0743ce5461016f5