Files
toml11/docs/content.ja/docs/reference/conversion.md
2024-06-15 19:27:42 +09:00

535 B

+++ title = "conversion.hpp" type = "docs" +++

conversion.hpp

toml::gettoml::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">}})