Skip to content

Class bit

class bit<T> simd

template <typename T>
struct bit { … }

Boolean value stored as a mask of type T (all-ones for true, all-zeros for false).

The stored mask is interpreted by examining the sign bit of the corresponding signed integer type, so any value with the high bit set reads as true.

Template parameters
T Underlying element type used to hold the mask bits.

variable value

T value

The raw mask value.

Fully qualified name: kfr::bit<T>::value

Declared at simd/types.hpp:488

constructor bit<T>()

bit() noexcept = default

Default constructor leaving the value uninitialized.

Fully qualified name: kfr::bit<T>::bit<T>()

Declared at simd/types.hpp:491

constructor bit<T>(bool)

constexpr bit(bool value) noexcept : value(maskbits<T>(value)) { … }

Construct from a bool, storing all-ones or all-zeros.

Fully qualified name: kfr::bit<T>::bit<T>(bool)

Declared at simd/types.hpp:494

function bit<T>(const bit<U> &)

template <typename U>
constexpr bit(const bit<U>& value) noexcept : value(value.operator bool()) { … }

Convert a bit of another element type to this one.

Fully qualified name: kfr::bit<T>::bit<T>(const bit<U> &)

Declared at simd/types.hpp:500

operator operator bool()

constexpr operator bool() const noexcept { … }

Converts to bool by testing the sign bit of the stored mask.

Fully qualified name: kfr::bit<T>::operator bool()

Declared at simd/types.hpp:505

constructor bit<T>(T)

constexpr bit(T value) noexcept       = delete

Fully qualified name: kfr::bit<T>::bit<T>(T)

Declared at simd/types.hpp:507

operator operator type-parameter-0-0()

constexpr operator T() const noexcept = delete

Fully qualified name: kfr::bit<T>::operator type-parameter-0-0()

Declared at simd/types.hpp:508

function operator==(const bit<T> &)

constexpr bool operator==(const bit& other) const noexcept { … }

Equality comparison between two bit values.

Fully qualified name: kfr::bit<T>::operator==(const bit<T> &)

Declared at simd/types.hpp:511

function operator!=(const bit<T> &)

constexpr bool operator!=(const bit& other) const noexcept { … }

Inequality comparison between two bit values.

Fully qualified name: kfr::bit<T>::operator!=(const bit<T> &)

Declared at simd/types.hpp:516

function operator==(bool)

constexpr bool operator==(bool other) const noexcept { … }

Equality comparison against a plain bool.

Fully qualified name: kfr::bit<T>::operator==(bool)

Declared at simd/types.hpp:518

function operator!=(bool)

constexpr bool operator!=(bool other) const noexcept { … }

Inequality comparison against a plain bool.

Fully qualified name: kfr::bit<T>::operator!=(bool)

Declared at simd/types.hpp:520

Fully qualified name: kfr::bit<T>

Declared at simd/types.hpp:485

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.