Core/Bitset: Add operator<<(ostream&)
This commit is contained in:
parent
91010fffa6
commit
180a8edf3b
|
|
@ -154,6 +154,9 @@ namespace Nz
|
||||||
Block m_mask;
|
Block m_mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename Block, class Allocator>
|
||||||
|
std::ostream& operator<<(std::ostream& out, const Bitset<Block, Allocator>& bitset);
|
||||||
|
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
bool operator==(const Bitset<Block, Allocator>& lhs, const Nz::Bitset<Block, Allocator>& rhs);
|
bool operator==(const Bitset<Block, Allocator>& lhs, const Nz::Bitset<Block, Allocator>& rhs);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1269,6 +1269,14 @@ namespace Nz
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<typename Block, class Allocator>
|
||||||
|
std::ostream& operator<<(std::ostream& out, const Bitset<Block, Allocator>& bitset)
|
||||||
|
{
|
||||||
|
return out << bitset.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Compares two bitsets
|
* \brief Compares two bitsets
|
||||||
* \return true if the two bitsets are the same
|
* \return true if the two bitsets are the same
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue