Function operator=

Summary

#include <include/EASTL/bitvector.h>

(1) bitvector_reference & operator=(bool value)

(2) bitvector_reference & operator=(const bitvector_reference &rhs)

Function overload

Synopsis

#include <include/EASTL/bitvector.h>

bitvector_reference & operator=(bool value)

Description

No description yet.

Source

Lines 350-362 in include/EASTL/bitvector.h. Line 68 in include/EASTL/bitvector.h.

template <typename Element>
bitvector_reference<Element>&
bitvector_reference<Element>::operator=(bool value)
{
    const Element mask = (Element)(Element(1) << mnBitIndex);
    if(value)
        *mpBitWord |= mask;
    else
        *mpBitWord &= ~mask;
    return *this;
}

Synopsis

#include <include/EASTL/bitvector.h>

bitvector_reference & operator=(const bitvector_reference &rhs)

Description

No description yet.

Source

Lines 365-370 in include/EASTL/bitvector.h. Line 69 in include/EASTL/bitvector.h.

template <typename Element>
bitvector_reference<Element>&
bitvector_reference<Element>::operator=(const bitvector_reference& rhs)
{
    return (*this = (bool)rhs);
}





Add Discussion as Guest

Log in