68 [[nodiscard]] std::size_t
size() const noexcept {
return data_->size; }
77 std::size_t index)
const noexcept;
132template <
typename Allocator = standard_allocator>
167 for (std::size_t i =
size; i <
data_->size; ++i) {
172 std::memcpy(new_data,
data_->data,
175 data_->data = new_data;
188 [[nodiscard]] std::size_t
size() const noexcept {
return data_->size; }
197 std::size_t index)
noexcept;
206 std::size_t index)
const noexcept;
Definition of allocator_wrapper class.
Definition of classes of iterators of arrays.
Class of iterators of arrays to access constant objects.
const_array_iterator const_iterator
Type of iterators.
const_array_iterator begin() const noexcept
Get an iterator to the first element.
const_array_iterator end() const noexcept
Get an iterator to the past-the-end element.
const_object_ref const_object_ref_type
Type to access constant objects.
const_array_ref(const details::array_data &data)
Constructor.
const_array_iterator cend() const noexcept
Get an iterator to the past-the-end element.
const details::array_data * data_
Data.
const_object_ref_type operator[](std::size_t index) const noexcept
Get an object.
const_array_iterator iterator
Type of iterators.
const_array_iterator cbegin() const noexcept
Get an iterator to the first element.
std::size_t size() const noexcept
Get the size.
Class to access constant objects.
Class to wrap allocators.
Class of iterators of arrays to access non-constant objects.
void resize(std::size_t size)
Change the size.
details::array_data * data_
Data.
mutable_array_iterator< Allocator > begin() noexcept
Get an iterator to the first element.
mutable_array_ref(details::array_data &data, details::allocator_wrapper< Allocator > &allocator)
Constructor.
const_array_iterator const_iterator
Type of iterators.
mutable_object_ref_type operator[](std::size_t index) noexcept
Get an object.
mutable_array_iterator< Allocator > iterator
Type of iterators.
details::allocator_wrapper< Allocator > * allocator_
Allocator.
mutable_array_iterator< Allocator > end() noexcept
Get an iterator to the past-the-end element.
const_object_ref const_object_ref_type
Type to access constant objects.
mutable_object_ref< Allocator > mutable_object_ref_type
Type to access non-constant objects.
Allocator allocator_type
Type of the allocator.
const_array_iterator end() const noexcept
Get an iterator to the past-the-end element.
std::size_t size() const noexcept
Get the size.
const_array_iterator begin() const noexcept
Get an iterator to the first element.
Class to access non-constant objects.
void clear_object_data(object_data &data, allocator_wrapper< Allocator > &allocator) noexcept
Clear data.
Namespace of this project.
Definition of object_data struct.
Definition of helper functions for implementation of object class.
Declaration of classes of references to objects.
Definition of standard_allocator class.
Struct of data of arrays.
Struct of data of objects in MessagePack.