C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::message_builder_element Class Referenceabstract

Wraps a value for either copying or moving it into a pre-allocated storage later. More...

#include <message_builder_element.hpp>

Inherited by caf::detail::message_builder_element_impl< T >.

Public Member Functions

 message_builder_element (const message_builder_element &)=delete
 
message_builder_elementoperator= (const message_builder_element &)=delete
 
virtual std::byte * copy_init (std::byte *storage) const =0
 Uses placement new to create a copy of the wrapped value at given memory region.
 
virtual std::byte * move_init (std::byte *storage)=0
 Uses placement new to move the wrapped value to given memory region.
 

Detailed Description

Wraps a value for either copying or moving it into a pre-allocated storage later.

Member Function Documentation

◆ copy_init()

virtual std::byte * caf::detail::message_builder_element::copy_init ( std::byte * storage) const
pure virtual

Uses placement new to create a copy of the wrapped value at given memory region.

Returns
the past-the-end pointer of the object, i.e., the first byte for the next object.

◆ move_init()

virtual std::byte * caf::detail::message_builder_element::move_init ( std::byte * storage)
pure virtual

Uses placement new to move the wrapped value to given memory region.

Returns
the past-the-end pointer of the object, i.e., the first byte for the next object.

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