Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::bitset< N > Class Template Reference

Class extending the bitset class from the standard library. Original reason is to allow printing of the container with overloaded operator <<. More...

#include <bitset.hpp>

Inheritance diagram for ext::bitset< N >:
[legend]
Collaboration diagram for ext::bitset< N >:
[legend]

Public Member Functions

 bitset ()=default
 
 bitset (const bitset &other)=default
 
 bitset (bitset &&other)=default
 
bitsetoperator= (bitset &&other)=default
 
bitsetoperator= (const bitset &other)=default
 
std::strong_ordering operator<=> (const ext::bitset< N > &second) const
 
bool operator== (const ext::bitset< N > &second) const
 

Detailed Description

template<std::size_t N>
class ext::bitset< N >

Class extending the bitset class from the standard library. Original reason is to allow printing of the container with overloaded operator <<.

The class mimics the behavior of the bitset from the standatd library.

Template Parameters
Nthe size of the bitset

Constructor & Destructor Documentation

◆ bitset() [1/3]

template<std::size_t N>
ext::bitset< N >::bitset ( )
default

Default constructor needed by g++ since it is not inherited

◆ bitset() [2/3]

template<std::size_t N>
ext::bitset< N >::bitset ( const bitset< N > &  other)
default

Copy constructor needed by g++ since it is not inherited

◆ bitset() [3/3]

template<std::size_t N>
ext::bitset< N >::bitset ( bitset< N > &&  other)
default

Move constructor needed by g++ since it is not inherited

Member Function Documentation

◆ operator<=>()

template<std::size_t N>
std::strong_ordering ext::bitset< N >::operator<=> ( const ext::bitset< N > &  second) const
inline

◆ operator=() [1/2]

template<std::size_t N>
bitset & ext::bitset< N >::operator= ( bitset< N > &&  other)
default

Copy operator = needed by g++ since it is not inherited

◆ operator=() [2/2]

template<std::size_t N>
bitset & ext::bitset< N >::operator= ( const bitset< N > &  other)
default

Move operator = needed by g++ since it is not inherited

◆ operator==()

template<std::size_t N>
bool ext::bitset< N >::operator== ( const ext::bitset< N > &  second) const
inline

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