MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / __move_to

Method __move_to

include/stdexec/__detail/__any.hpp:687–698  ·  view source on GitHub ↗

This is a virtual override if _Interface extends __imovable @pre __is_small<__value_model>(__buff.size())

Source from the content-addressed store, hash-verified

685 // This is a virtual override if _Interface extends __imovable
686 //! @pre __is_small<__value_model>(__buff.size())
687 constexpr void __move_to(__iroot *&__ptr, std::span<std::byte> __buff) noexcept
688 {
689 static_assert(__extension_of<__iabstract<_Interface>, __imovable>);
690 STDEXEC_ASSERT(STDEXEC::__any::__is_small<__value_model>(__buff.size()));
691 STDEXEC::__any::__emplace_into<__value_model>(this->__get_allocator(),
692 __ptr,
693 __buff,
694 std::allocator_arg,
695 this->__get_allocator(),
696 __value(std::move(*this)));
697 __reset(*this);
698 }
699
700 // This is a virtual override if _Interface extends __icopyable
701 constexpr void __copy_to(__iroot *&__ptr, std::span<std::byte> __buff) const

Callers

nothing calls this directly

Calls 2

__get_allocatorMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected