22 CArchive& operator<<(CArchive& out, const std::optional<T>&
obj)
25 out <<
obj.has_value();
26 if (
obj.has_value()) out << *
obj;
36 if (pref !=
"std::optional")
38 "Error: serialized std::optional<%s>'s preamble is wrong: '%s'",
43 "Error: serialized std::optional type %s != %s", stored_T.c_str(),
#define THROW_EXCEPTION(msg)
GLsizei GLsizei GLuint * obj
GLsizei const GLchar ** string
CArchive & operator>>(CArchive &s, mrpt::aligned_std_vector< float > &a)
Virtual base class for "archives": classes abstracting I/O streams.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.