bool operator==(
const Data& other)
const noexcept bool operator!=(
const Data& other)
const noexcept
bool empty()
const noexcept template<typename FeatureId>
bool has(
const FeatureId& featureId)
const noexcept template<typename FeatureId, typename... Args>
bool hasAny(
const FeatureId& featureId, Args&&... otherFeatureIds)
const noexcept
template<typename FeatureId>
void add(
const FeatureId& featureId)
noexcept template<typename FeatureId, typename... Args> void add(const FeatureId& featureId, Args&&... otherFeatureIds) noexcept
template<typename FeatureId> void addIf(bool condition, const FeatureId& featureId) noexcept
template<typename FeatureId, typename... Args> void addIf(bool condition, const FeatureId& featureId, Args&&... otherFeatureIds) noexcept
template<typename FeatureId>
void remove(
const FeatureId& featureId)
noexcept template<typename FeatureId, typename... Args> void remove(const FeatureId& featureId, Args&&... otherFeatureIds) noexcept
bool CpuFeatures::Data::empty() constnoexcept◆
Returns true if there are no features set.
BitWord* CpuFeatures::Data::bits()noexcept[1/2]◆
const BitWord* CpuFeatures::Data::bits() constnoexcept[2/2]◆
Returns all features as array of bitwords (const).
size_t CpuFeatures::Data::bitWordCount() constnoexcept◆
Returns the number of BitWords returned by bits().
Iterator CpuFeatures::Data::iterator() constnoexcept◆
template<typename FeatureId>
bool CpuFeatures::Data::has(const FeatureId& featureId) constnoexcept◆
Tests whether the feature featureId
is present.
template<typename FeatureId, typename... Args>
bool CpuFeatures::Data::hasAny(const FeatureId& featureId, Args&&... otherFeatureIds) constnoexcept◆
Tests whether any feature given is present.
- Note
- This is a variadic function template that can be used with multiple features.
bool CpuFeatures::Data::hasAll(const Data& other) constnoexcept◆
Tests whether all features as defined by other
are present.
void CpuFeatures::Data::reset()noexcept◆
template<typename FeatureId>
void CpuFeatures::Data::add(const FeatureId& featureId)noexcept◆
Adds the given CPU featureId
to the list of features.
template<typename FeatureId>
void CpuFeatures::Data::remove(const FeatureId& featureId)noexcept◆
Removes the given CPU featureId
from the list of features.
bool CpuFeatures::Data::equals(const Data& other) constnoexcept◆
Tests whether this CPU features data matches other
.
Bits CpuFeatures::Data::_bits◆