#include
#include
#include
#include
using GroupId = std::uint64_t;
using ReducedGroupId = GroupId;
struct Memo {
std::optional GetReduceGroupId(const GroupId& group_id) {
// omit
return std::make_optional(group_id);
}
};
int main(int argc, char* argv[]) {
std::vector tmp;
Memo memo;
GroupId group_id = 1;
const ReducedGroupId& reduced_group_id = memo.GetReduceGroupId(group_id).value();
std::cout |" |" |"
结果
3.1.->|1:0x7ffe4fcd3530
3.2.->|4:0x7ffe4fcd3530
3.3.->|5:0x7ffe4fcd3530
问题