Document result<>::value_type, error_type, in_place_value, in_place_error. Closes #93.

This commit is contained in:
Peter Dimov
2022-09-27 20:23:28 +03:00
parent 19f99264de
commit ee318f937f

View File

@ -1600,6 +1600,12 @@ template<class T, class E = error_code> class result
{
public:
using value_type = T;
using error_type = E;
static constexpr in_place_value_t in_place_value{};
static constexpr in_place_error_t in_place_error{};
// constructors
constexpr result();
@ -1916,6 +1922,12 @@ template<class E> class result<void, E>
{
public:
using value_type = void;
using error_type = E;
static constexpr in_place_value_t in_place_value{};
static constexpr in_place_error_t in_place_error{};
// constructors
constexpr result() noexcept;