mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-20 04:38:09 +08:00
535 B
535 B
+++ title = "conversion.hpp" type = "docs" +++
conversion.hpp
toml::get
やtoml::find
でユーザー定義型をサポートするための変換関数を自動定義するマクロを提供します。
TOML11_DEFINE_CONVERSION_NON_INTRUSIVE(NAME, ...)
例
namespace foo
{
struct Foo
{
std::string s;
double d;
int i;
};
} // foo
TOML11_DEFINE_CONVERSION_NON_INTRUSIVE(foo::Foo, s, d, i)
関連項目
- [from.hpp]({{<ref "from.md">}})
- [into.hpp]({{<ref "into.md">}})