Two types from C++17 make "maybe" and "one of" explicit.
std::optional<T> holds a T or nothing (std::nullopt). Return it when a result can be missing, instead of a magic value such as -1 or 0 that might also be a real answer. Test it with if (opt) or opt.has_value(), read it with *opt, and use opt.value_or(fallback) for a default.
std::variant<A, B, C> holds exactly one of several types, which suits messages that come in kinds: a fill, a cancel, a reset. std::holds_alternative<A>(v) asks which kind it holds, std::get_if<A>(&v) gives a pointer or nullptr, and std::visit(f, v) calls f with whatever is inside. A common way to write f is one lambda per type combined by a small overloaded helper.
They live in their own headers, <optional> and <variant>.
An empty book returns nothing, not a price.