Core/ByteArray: Add constructor taking the container by value
Allowing to move the content
This commit is contained in:
@@ -46,6 +46,11 @@ namespace Nz
|
||||
{
|
||||
}
|
||||
|
||||
inline ByteArray::ByteArray(Container container) :
|
||||
m_array(std::move(container))
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Constructs a ByteArray object from two iterators
|
||||
*
|
||||
@@ -593,6 +598,15 @@ namespace Nz
|
||||
return m_array.rend();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Returns a reversed iterator pointing to the end of the string
|
||||
* \return End of the string
|
||||
*/
|
||||
inline ByteArray::const_reverse_iterator ByteArray::rend() const noexcept
|
||||
{
|
||||
return m_array.rend();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Gets the size of the byte array
|
||||
* \return Size of the byte array
|
||||
|
||||
Reference in New Issue
Block a user