3.2.1. Proximie common types
The Proximie namespace contains some fundamental types used throughout the SDK, as well as being the container for further namespaces for the various SDK features. See the main SDK reference for the feature namespaces.
Commonly used and fundamental types are defined in a Proximie::PxTypes
namespace, but these are also exported to the top-level Proximie namespace for
convenience.
-
namespace PxTypes
Typedefs
-
using string_view = boost::string_view
-
using error_code = boost::system::error_code
-
using error_condition = boost::system::error_condition
-
template<typename T>
using KeyNotNullMap = KeyMap<shared_not_null<T>>
-
template<typename T>
using NotNullOutcome = outcome::result<shared_not_null<T>>
-
using json_object = boost::json::object
-
using json_value = boost::json::value
Functions
-
template<typename T>
inline error_code outcome_error_code(const outcome::result<T> &result) Return the error code from the outcome result, or a “success” error_code value if result is successful.
By default, outcome only allows
error
to be called when there is an actual error condition Sometimes though, it’s convenient to obtain the error (if any), or the default-constructed “success” error_code value for error handling logic.
-
using string_view = boost::string_view