| 3986 | template <typename T, typename E> |
| 3987 | template <typename...Args> |
| 3988 | inline RESULT_INLINE_VISIBILITY |
| 3989 | auto 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 | |
| 4000 | template <typename T, typename E> |
| 4001 | template <typename Result> |
nothing calls this directly
no outgoing calls
no test coverage detected