MCPcopy Create free account
hub / github.com/bitwizeshift/result / construct_error

Method construct_error

include/result.hpp:3988–3998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3986template <typename T, typename E>
3987template <typename...Args>
3988inline RESULT_INLINE_VISIBILITY
3989auto RESULT_NS_IMPL::detail::result_construct_base<T,E>::construct_error(Args&&...args)
3990 noexcept(std::is_nothrow_constructible<E,Args...>::value)
3991 -> void
3992{
3993 using error_type = typename storage_type::underlying_error_type;
3994
3995 auto* p = static_cast<void*>(std::addressof(storage.m_error));
3996 new (p) error_type(detail::forward<Args>(args)...);
3997 storage.m_has_value = false;
3998}
3999
4000template <typename T, typename E>
4001template <typename Result>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected