#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
◆ MR_expected_bool_std_string
Stores either a bool
that represents success or a std::string
that represents an error. Supported MR_PassBy
modes: MR_PassBy_DefaultConstruct
, MR_PassBy_Copy
, MR_PassBy_Move
, (and MR_PassBy_DefaultArgument
and MR_PassBy_NoObject
if supported by the callee).
◆ MR_std_string
◆ MR_expected_bool_std_string_AssignFrom()
Assigns the contents. Parameter _this
can not be null. It is a single object.
◆ MR_expected_bool_std_string_AssignFromAnother()
Assigns the contents from another instance. Both objects remain alive after the call. Parameter _this
can not be null. It is a single object.
◆ MR_expected_bool_std_string_ConstructFrom()
◆ MR_expected_bool_std_string_ConstructFromAnother()
Constructs a copy of another instance. The source remains alive. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_bool_std_string_Destroy()
to free it when you're done using it.
◆ MR_expected_bool_std_string_DefaultConstruct()
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_bool_std_string_Destroy()
to free it when you're done using it.
◆ MR_expected_bool_std_string_DefaultConstructArray()
◆ MR_expected_bool_std_string_Destroy()
Destroys a heap-allocated instance of MR_expected_bool_std_string
. Does nothing if the pointer is null.
◆ MR_expected_bool_std_string_DestroyArray()
Destroys a heap-allocated array of MR_expected_bool_std_string
. Does nothing if the pointer is null.
◆ MR_expected_bool_std_string_GetError()
If this instance represents an error, returns the stored std::string
. Otherwise null. Parameter _this
can not be null. It is a single object.
◆ MR_expected_bool_std_string_GetMutableError()
If this instance represents an error, returns the stored std::string
. Otherwise null. This version returns a mutable pointer. Parameter _this
can not be null. It is a single object.
◆ MR_expected_bool_std_string_GetMutableValue()
If this instance represents success, returns the stored bool
. Otherwise null. This version returns a mutable pointer. Parameter _this
can not be null. It is a single object.
◆ MR_expected_bool_std_string_GetValue()
If this instance represents success, returns the stored bool
. Otherwise null. Parameter _this
can not be null. It is a single object.
◆ MR_expected_bool_std_string_OffsetMutablePtr()
Offsets a pointer to an array element by i
positions (not bytes). Use only if you're certain that the pointer points to an array element.
◆ MR_expected_bool_std_string_OffsetPtr()
Offsets a pointer to an array element by i
positions (not bytes). Use only if you're certain that the pointer points to an array element.