Embedded Template Library 1.0
bitset

Classes

class  etl::bitset_exception
 
class  etl::bitset_nullptr
 
class  etl::bitset_type_too_small
 
class  etl::bitset_overflow
 
class  etl::ibitset
 
class  etl::bitset< MaxN >
 
class  etl::bitset_string_too_small
 
class  etl::bitset_impl< TElement >
 

Functions

template<size_t MaxN>
bitset< MaxN > etl::operator& (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs)
 
template<size_t MaxN>
bitset< MaxN > etl::operator| (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs)
 
template<size_t MaxN>
bitset< MaxN > etl::operator^ (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs)
 
template<size_t MaxN>
bool etl::operator!= (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs)
 
template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator& (const bitset< Active_Bits, TElement, IsSingleElement > &lhs, const bitset< Active_Bits, TElement, IsSingleElement > &rhs) ETL_NOEXCEPT
 
template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator| (const bitset< Active_Bits, TElement, IsSingleElement > &lhs, const bitset< Active_Bits, TElement, IsSingleElement > &rhs) ETL_NOEXCEPT
 
template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator^ (const bitset< Active_Bits, TElement, IsSingleElement > &lhs, const bitset< Active_Bits, TElement, IsSingleElement > &rhs) ETL_NOEXCEPT
 
template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bool etl::operator!= (const bitset< Active_Bits, TElement, IsSingleElement > &lhs, const bitset< Active_Bits, TElement, IsSingleElement > &rhs) ETL_NOEXCEPT
 
template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bool etl::operator!= (const bitset_ext< Active_Bits, TElement, IsSingleElement > &lhs, const bitset_ext< Active_Bits, TElement, IsSingleElement > &rhs) ETL_NOEXCEPT
 

Detailed Description

Similar to std::bitset but without requiring std::string.


Class Documentation

◆ etl::bitset_exception

class etl::bitset_exception

Exception base for bitset

Public Member Functions

 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::exception
ETL_CONSTEXPR exception (string_type reason_, string_type, numeric_type line_)
 Constructor.
 
ETL_CONSTEXPR string_type what () const
 
ETL_CONSTEXPR string_type file_name () const
 
ETL_CONSTEXPR numeric_type line_number () const
 

Additional Inherited Members

- Public Types inherited from etl::exception
typedef const char * string_type
 
typedef int numeric_type
 

◆ etl::bitset_nullptr

class etl::bitset_nullptr

Bitset null pointer exception.

Public Member Functions

 bitset_nullptr (string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::bitset_exception
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::exception
ETL_CONSTEXPR exception (string_type reason_, string_type, numeric_type line_)
 Constructor.
 
ETL_CONSTEXPR string_type what () const
 
ETL_CONSTEXPR string_type file_name () const
 
ETL_CONSTEXPR numeric_type line_number () const
 

Additional Inherited Members

- Public Types inherited from etl::exception
typedef const char * string_type
 
typedef int numeric_type
 

◆ etl::bitset_type_too_small

class etl::bitset_type_too_small

Bitset type_too_small exception.

Public Member Functions

 bitset_type_too_small (string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::bitset_exception
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::exception
ETL_CONSTEXPR exception (string_type reason_, string_type, numeric_type line_)
 Constructor.
 
ETL_CONSTEXPR string_type what () const
 
ETL_CONSTEXPR string_type file_name () const
 
ETL_CONSTEXPR numeric_type line_number () const
 

Additional Inherited Members

- Public Types inherited from etl::exception
typedef const char * string_type
 
typedef int numeric_type
 

◆ etl::bitset_overflow

class etl::bitset_overflow

Bitset overflow exception.

Public Member Functions

 bitset_overflow (string_type file_name_, numeric_type line_number_)
 
 bitset_overflow (string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::bitset_exception
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::exception
ETL_CONSTEXPR exception (string_type reason_, string_type, numeric_type line_)
 Constructor.
 
ETL_CONSTEXPR string_type what () const
 
ETL_CONSTEXPR string_type file_name () const
 
ETL_CONSTEXPR numeric_type line_number () const
 

Additional Inherited Members

- Public Types inherited from etl::exception
typedef const char * string_type
 
typedef int numeric_type
 

◆ etl::ibitset

class etl::ibitset

The base class for etl::bitset

Public Types

enum  { npos = etl::integral_limits<size_t>::max }
 
typedef etl::make_unsigned< ETL_BITSET_ELEMENT_TYPE >::type element_type
 
typedef element_type element_t
 

Public Member Functions

size_t size () const
 The number of bits in the bitset.
 
size_t count () const
 Count the number of bits set.
 
bool test (size_t position) const
 
ibitsetset ()
 Set all bits.
 
ibitsetset (size_t position, bool value=true)
 Set the bit at the position.
 
ibitsetfrom_string (const char *text)
 Set from a string.
 
ibitsetfrom_string (const wchar_t *text)
 Set from a wide string.
 
ibitsetfrom_string (const char16_t *text)
 Set from a u16 string.
 
ibitsetfrom_string (const char32_t *text)
 Set from a u32 string.
 
ibitsetset (const char *text)
 Set from a string.
 
ibitsetset (const wchar_t *text)
 Set from a wstring.
 
ibitsetset (const char16_t *text)
 Set from a u16string.
 
ibitsetset (const char32_t *text)
 Set from a u32string.
 
template<typename T >
etl::enable_if< etl::is_integral< T >::value, T >::type value () const
 Put to a value.
 
unsigned long to_ulong () const
 Put to a unsigned long.
 
unsigned long long to_ullong () const
 Put to a unsigned long long.
 
ibitsetreset ()
 Resets the bitset.
 
ibitsetreset (size_t position)
 Reset the bit at the position.
 
ibitsetflip ()
 Flip all of the bits.
 
ibitsetflip (size_t position)
 Flip the bit at the position.
 
bool all () const
 
bool any () const
 Are any of the bits set?
 
bool none () const
 Are none of the bits set?
 
size_t find_first (bool state) const
 
size_t find_next (bool state, size_t position) const
 
bool operator[] (size_t position) const
 Read [] operator.
 
bit_reference operator[] (size_t position)
 Write [] operator.
 
ibitsetoperator&= (const ibitset &other)
 operator &=
 
ibitsetoperator|= (const ibitset &other)
 operator |=
 
ibitsetoperator^= (const ibitset &other)
 operator ^=
 
ibitsetoperator<<= (size_t shift)
 operator <<=
 
ibitsetoperator>>= (size_t shift)
 operator >>=
 
ibitsetoperator= (const ibitset &other)
 operator =
 
void swap (ibitset &other)
 swap
 

Static Public Attributes

static ETL_CONSTANT element_type ALL_SET = etl::integral_limits<element_type>::max
 
static ETL_CONSTANT element_type ALL_CLEAR = 0
 
static ETL_CONSTANT size_t Bits_Per_Element = etl::integral_limits<element_type>::bits
 

Protected Member Functions

ibitsetinitialise (unsigned long long value)
 Initialise from an unsigned long long.
 
void invert ()
 Invert.
 
bit_reference get_bit_reference (size_t position)
 Gets a reference to the specified bit.
 
 ibitset (size_t nbits_, size_t size_, element_type *pdata_)
 Constructor.
 
 ~ibitset ()
 Destructor.
 

Static Protected Member Functions

static bool is_equal (const ibitset &lhs, const ibitset &rhs)
 Compare bitsets.
 

Protected Attributes

element_type Top_Mask
 

Member Function Documentation

◆ find_first()

size_t etl::ibitset::find_first ( bool  state) const
inline

Finds the first bit in the specified state.

Parameters
stateThe state to search for.
Returns
The position of the bit or Number_Of_Elements if none were found.

◆ find_next()

size_t etl::ibitset::find_next ( bool  state,
size_t  position 
) const
inline

Finds the next bit in the specified state.

Parameters
stateThe state to search for.
positionThe position to start from.
Returns
The position of the bit or ibitset::npos if none were found.

◆ test()

bool etl::ibitset::test ( size_t  position) const
inline

Tests a bit at a position. Positions greater than the number of configured bits will return false.

◆ etl::bitset

class etl::bitset
template<size_t MaxN>
class etl::bitset< MaxN >

The class emulates an array of bool elements, but optimized for space allocation. Will accommodate any number of bits. Does not use std::string.

Template Parameters
MaxNThe number of bits.

Public Member Functions

 bitset ()
 Default constructor.
 
 bitset (const bitset< MaxN > &other)
 Copy constructor.
 
 bitset (unsigned long long value)
 Construct from a value.
 
 bitset (const char *text)
 Construct from a string.
 
 bitset (const wchar_t *text)
 Construct from a string.
 
 bitset (const char16_t *text)
 Construct from a string.
 
 bitset (const char32_t *text)
 Construct from a string.
 
bitset< MaxN > & set ()
 Set all of the bits.
 
bitset< MaxN > & set (size_t position, bool value=true)
 Set the bit at the position.
 
bitset< MaxN > & set (const char *text)
 Set from a string.
 
bitset< MaxN > & set (const wchar_t *text)
 Set from a string.
 
bitset< MaxN > & set (const char16_t *text)
 Set from a string.
 
bitset< MaxN > & set (const char32_t *text)
 Set from a string.
 
bitset< MaxN > & from_string (const char *text)
 Set from a string.
 
bitset< MaxN > & from_string (const wchar_t *text)
 Set from a wide string.
 
bitset< MaxN > & from_string (const char16_t *text)
 Set from a u16 string.
 
bitset< MaxN > & from_string (const char32_t *text)
 Set from a u32 string.
 
template<typename T >
etl::enable_if< etl::is_integral< T >::value, T >::type value () const
 Put to a value.
 
bitset< MaxN > & reset ()
 Reset all of the bits.
 
bitset< MaxN > & reset (size_t position)
 Reset the bit at the position.
 
bitset< MaxN > & flip ()
 Flip all of the bits.
 
bitset< MaxN > & flip (size_t position)
 Flip the bit at the position.
 
template<typename TString >
TString to_string (typename TString::value_type zero=typename TString::value_type('0'), typename TString::value_type one=typename TString::value_type('1')) const
 Returns a string representing the bitset.
 
bitset< MaxN > & operator= (const bitset< MaxN > &other)
 operator =
 
bitset< MaxN > & operator&= (const bitset< MaxN > &other)
 operator &=
 
bitset< MaxN > & operator|= (const bitset< MaxN > &other)
 operator |=
 
bitset< MaxN > & operator^= (const bitset< MaxN > &other)
 operator ^=
 
bitset< MaxN > operator~ () const
 operator ~
 
bitset< MaxN > operator<< (size_t shift) const
 operator <<
 
bitset< MaxN > & operator<<= (size_t shift)
 operator <<=
 
bitset< MaxN > operator>> (size_t shift) const
 operator >>
 
bitset< MaxN > & operator>>= (size_t shift)
 operator >>=
 
- Public Member Functions inherited from etl::ibitset
size_t size () const
 The number of bits in the bitset.
 
size_t count () const
 Count the number of bits set.
 
bool test (size_t position) const
 
ibitsetset ()
 Set all bits.
 
ibitsetset (size_t position, bool value=true)
 Set the bit at the position.
 
ibitsetfrom_string (const char *text)
 Set from a string.
 
ibitsetfrom_string (const wchar_t *text)
 Set from a wide string.
 
ibitsetfrom_string (const char16_t *text)
 Set from a u16 string.
 
ibitsetfrom_string (const char32_t *text)
 Set from a u32 string.
 
ibitsetset (const char *text)
 Set from a string.
 
ibitsetset (const wchar_t *text)
 Set from a wstring.
 
ibitsetset (const char16_t *text)
 Set from a u16string.
 
ibitsetset (const char32_t *text)
 Set from a u32string.
 
template<typename T >
etl::enable_if< etl::is_integral< T >::value, T >::type value () const
 Put to a value.
 
unsigned long to_ulong () const
 Put to a unsigned long.
 
unsigned long long to_ullong () const
 Put to a unsigned long long.
 
ibitsetreset ()
 Resets the bitset.
 
ibitsetreset (size_t position)
 Reset the bit at the position.
 
ibitsetflip ()
 Flip all of the bits.
 
ibitsetflip (size_t position)
 Flip the bit at the position.
 
bool all () const
 
bool any () const
 Are any of the bits set?
 
bool none () const
 Are none of the bits set?
 
size_t find_first (bool state) const
 
size_t find_next (bool state, size_t position) const
 
bool operator[] (size_t position) const
 Read [] operator.
 
bit_reference operator[] (size_t position)
 Write [] operator.
 
ibitsetoperator&= (const ibitset &other)
 operator &=
 
ibitsetoperator|= (const ibitset &other)
 operator |=
 
ibitsetoperator^= (const ibitset &other)
 operator ^=
 
ibitsetoperator<<= (size_t shift)
 operator <<=
 
ibitsetoperator>>= (size_t shift)
 operator >>=
 
ibitsetoperator= (const ibitset &other)
 operator =
 
void swap (ibitset &other)
 swap
 

Static Public Attributes

static ETL_CONSTANT size_t ALLOCATED_BITS = Array_Size * Bits_Per_Element
 
static ETL_CONSTANT size_t Allocated_Bits = ALLOCATED_BITS
 
- Static Public Attributes inherited from etl::ibitset
static ETL_CONSTANT element_type ALL_SET = etl::integral_limits<element_type>::max
 
static ETL_CONSTANT element_type ALL_CLEAR = 0
 
static ETL_CONSTANT size_t Bits_Per_Element = etl::integral_limits<element_type>::bits
 

Friends

bool operator== (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs)
 operator ==
 

Additional Inherited Members

- Public Types inherited from etl::ibitset
enum  { npos = etl::integral_limits<size_t>::max }
 
typedef etl::make_unsigned< ETL_BITSET_ELEMENT_TYPE >::type element_type
 
typedef element_type element_t
 
- Protected Member Functions inherited from etl::ibitset
ibitsetinitialise (unsigned long long value)
 Initialise from an unsigned long long.
 
void invert ()
 Invert.
 
bit_reference get_bit_reference (size_t position)
 Gets a reference to the specified bit.
 
 ibitset (size_t nbits_, size_t size_, element_type *pdata_)
 Constructor.
 
 ~ibitset ()
 Destructor.
 
- Static Protected Member Functions inherited from etl::ibitset
static bool is_equal (const ibitset &lhs, const ibitset &rhs)
 Compare bitsets.
 
- Protected Attributes inherited from etl::ibitset
element_type Top_Mask
 

◆ etl::bitset_string_too_small

class etl::bitset_string_too_small

Bitset type_too_small exception.

Public Member Functions

 bitset_string_too_small (string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::bitset_exception
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
 bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_)
 
- Public Member Functions inherited from etl::exception
ETL_CONSTEXPR exception (string_type reason_, string_type, numeric_type line_)
 Constructor.
 
ETL_CONSTEXPR string_type what () const
 
ETL_CONSTEXPR string_type file_name () const
 
ETL_CONSTEXPR numeric_type line_number () const
 

Additional Inherited Members

- Public Types inherited from etl::exception
typedef const char * string_type
 
typedef int numeric_type
 

◆ etl::bitset_impl

class etl::bitset_impl
template<typename TElement>
class etl::bitset_impl< TElement >

The implementation class for multi-element etl::bitset

Public Types

typedef etl::make_unsigned< TElement >::type element_type
 
typedef element_type * pointer
 
typedef const element_type * const_pointer
 

Public Member Functions

ETL_CONSTEXPR14 size_t count (const_pointer pbuffer, size_t number_of_elements) const ETL_NOEXCEPT
 Count the number of bits set.
 
ETL_CONSTEXPR14 bool test (const_pointer pbuffer, size_t number_of_elements, size_t position) const ETL_NOEXCEPT
 
ETL_CONSTEXPR14 void set (pointer pbuffer, size_t number_of_elements, size_t position, bool value=true) ETL_NOEXCEPT
 Set the bit at the position.
 
ETL_CONSTEXPR14 void from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char *text) ETL_NOEXCEPT
 Set from a string.
 
ETL_CONSTEXPR14 void from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const wchar_t *text) ETL_NOEXCEPT
 Set from a wide string.
 
ETL_CONSTEXPR14 void from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char16_t *text) ETL_NOEXCEPT
 Set from a u16 string.
 
ETL_CONSTEXPR14 void from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char32_t *text) ETL_NOEXCEPT
 Set from a u32 string.
 
ETL_CONSTEXPR14 void set (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char *text) ETL_NOEXCEPT
 Set from a string.
 
ETL_CONSTEXPR14 void set (pointer pbuffer, size_t number_of_elements, size_t total_bits, const wchar_t *text) ETL_NOEXCEPT
 Set from a wstring.
 
ETL_CONSTEXPR14 void set (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char16_t *text) ETL_NOEXCEPT
 Set from a u16string.
 
ETL_CONSTEXPR14 void set (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char32_t *text) ETL_NOEXCEPT
 Set from a u32string.
 
template<typename T >
ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value, T >::type value (const_pointer pbuffer, size_t number_of_elements) const ETL_NOEXCEPT
 Get as a value.
 
ETL_CONSTEXPR14 void reset (pointer pbuffer, size_t number_of_elements, size_t position) ETL_NOEXCEPT
 Reset the bit at the position.
 
ETL_CONSTEXPR14 void flip (pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT
 Flip all of the bits.
 
ETL_CONSTEXPR14 void flip (pointer pbuffer, size_t number_of_elements, size_t position) ETL_NOEXCEPT
 Flip the bit at the position.
 
ETL_CONSTEXPR14 bool all (const_pointer pbuffer, size_t number_of_elements, element_type top_mask) const ETL_NOEXCEPT
 
ETL_CONSTEXPR14 bool none (const_pointer pbuffer, size_t number_of_elements) const ETL_NOEXCEPT
 Are none of the bits set?
 
ETL_CONSTEXPR14 size_t find_first (const_pointer pbuffer, size_t number_of_elements, size_t total_bits, bool state) const ETL_NOEXCEPT
 
ETL_CONSTEXPR14 size_t find_next (const_pointer pbuffer, size_t number_of_elements, size_t total_bits, bool state, size_t position) const ETL_NOEXCEPT
 
template<typename TString >
ETL_CONSTEXPR14 TString to_string (const_pointer pbuffer, size_t number_of_elements, size_t active_bits, typename TString::value_type zero, typename TString::value_type one) const
 Returns a string representing the bitset.
 
ETL_CONSTEXPR14 void shift_left_equals (pointer pbuffer, size_t number_of_elements, size_t shift) ETL_NOEXCEPT
 shift_left_equals
 
ETL_CONSTEXPR14 void shift_right_equals (pointer pbuffer, size_t number_of_elements, size_t shift) ETL_NOEXCEPT
 shift_right_equals
 
ETL_CONSTEXPR14 void and_equals (pointer pbuffer, const_pointer pbuffer2, size_t number_of_elements) ETL_NOEXCEPT
 and_equals
 
ETL_CONSTEXPR14 void or_equals (pointer pbuffer, const_pointer pbuffer2, size_t number_of_elements) ETL_NOEXCEPT
 or_equals
 
ETL_CONSTEXPR14 void xor_equals (pointer pbuffer, const_pointer pbuffer2, size_t number_of_elements) ETL_NOEXCEPT
 xor_equals
 
ETL_CONSTEXPR14 void initialise (pointer pbuffer, size_t number_of_elements, unsigned long long value) ETL_NOEXCEPT
 Initialise from an unsigned long long.
 
ETL_CONSTEXPR14 void swap (pointer pbuffer1, pointer pbuffer2, size_t number_of_elements)
 Swap bitset buffers.
 

Static Public Attributes

static ETL_CONSTANT size_t Bits_Per_Element = etl::integral_limits<element_type>::bits
 
static ETL_CONSTANT element_type All_Set_Element = etl::integral_limits<element_type>::max
 
static ETL_CONSTANT element_type All_Clear_Element = element_type(0)
 
- Static Public Attributes inherited from etl::bitset_constants< T >
static ETL_CONSTANT size_t npos = etl::integral_limits<size_t>::max
 

Member Function Documentation

◆ find_first()

template<typename TElement >
ETL_CONSTEXPR14 size_t etl::bitset_impl< TElement >::find_first ( const_pointer  pbuffer,
size_t  number_of_elements,
size_t  total_bits,
bool  state 
) const
inline

Finds the first bit in the specified state.

Parameters
stateThe state to search for.
Returns
The position of the bit or Number_Of_Elements if none were found.

◆ find_next()

template<typename TElement >
ETL_CONSTEXPR14 size_t etl::bitset_impl< TElement >::find_next ( const_pointer  pbuffer,
size_t  number_of_elements,
size_t  total_bits,
bool  state,
size_t  position 
) const
inline

Finds the next bit in the specified state.

Parameters
stateThe state to search for.
positionThe position to start from.
Returns
The position of the bit or npos if none were found.

◆ test()

template<typename TElement >
ETL_CONSTEXPR14 bool etl::bitset_impl< TElement >::test ( const_pointer  pbuffer,
size_t  number_of_elements,
size_t  position 
) const
inline

Tests a bit at a position. Positions greater than the number of configured bits will return false.

Function Documentation

◆ operator!=() [1/3]

template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bool etl::operator!= ( const bitset< Active_Bits, TElement, IsSingleElement > &  lhs,
const bitset< Active_Bits, TElement, IsSingleElement > &  rhs 
)

operator !=

◆ operator!=() [2/3]

template<size_t MaxN>
bool etl::operator!= ( const bitset< MaxN > &  lhs,
const bitset< MaxN > &  rhs 
)

operator !=

◆ operator!=() [3/3]

template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bool etl::operator!= ( const bitset_ext< Active_Bits, TElement, IsSingleElement > &  lhs,
const bitset_ext< Active_Bits, TElement, IsSingleElement > &  rhs 
)

operator !=

◆ operator&() [1/2]

template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator& ( const bitset< Active_Bits, TElement, IsSingleElement > &  lhs,
const bitset< Active_Bits, TElement, IsSingleElement > &  rhs 
)

operator &

◆ operator&() [2/2]

template<size_t MaxN>
bitset< MaxN > etl::operator& ( const bitset< MaxN > &  lhs,
const bitset< MaxN > &  rhs 
)

operator &

◆ operator^() [1/2]

template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator^ ( const bitset< Active_Bits, TElement, IsSingleElement > &  lhs,
const bitset< Active_Bits, TElement, IsSingleElement > &  rhs 
)

operator ^

◆ operator^() [2/2]

template<size_t MaxN>
bitset< MaxN > etl::operator^ ( const bitset< MaxN > &  lhs,
const bitset< MaxN > &  rhs 
)

operator ^

◆ operator|() [1/2]

template<size_t Active_Bits, typename TElement , bool IsSingleElement>
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator| ( const bitset< Active_Bits, TElement, IsSingleElement > &  lhs,
const bitset< Active_Bits, TElement, IsSingleElement > &  rhs 
)

operator |

◆ operator|() [2/2]

template<size_t MaxN>
bitset< MaxN > etl::operator| ( const bitset< MaxN > &  lhs,
const bitset< MaxN > &  rhs 
)

operator |