Marks a conversion between data types as being an embedding.
To mark a conversion between two data types To
and From
as an embedding, simply use embedding<true>
(or simply embedding<>
) as a base class of the corresponding to_impl
specialization. If a to_impl
specialization does not inherit embedding<true>
or embedding<>
, then it is not considered an embedding by the is_embedded
metafunction.
#### Tip The boolean template parameter is useful for marking a conversion as an embedding only when some condition is satisfied.
Inherited by boost::hana::to_impl< T *, decltype(nullptr)>, boost::hana::to_impl< To, To >, boost::hana::to_impl< detail::copy_char_signedness< int >::type, char >, boost::hana::to_impl< detail::copy_char_signedness< long >::type, char >, boost::hana::to_impl< detail::copy_char_signedness< long long >::type, char >, boost::hana::to_impl< detail::copy_char_signedness< short >::type, char >, boost::hana::to_impl< double, float >, boost::hana::to_impl< long double, double >, boost::hana::to_impl< long double, float >, boost::hana::to_impl< signed int, signed char >, boost::hana::to_impl< signed int, signed short >, boost::hana::to_impl< signed long long, signed char >, boost::hana::to_impl< signed long long, signed int >, boost::hana::to_impl< signed long long, signed long >, boost::hana::to_impl< signed long long, signed short >, boost::hana::to_impl< signed long, signed char >, boost::hana::to_impl< signed long, signed int >, boost::hana::to_impl< signed long, signed short >, boost::hana::to_impl< signed short, signed char >, boost::hana::to_impl< unsigned int, unsigned char >, boost::hana::to_impl< unsigned int, unsigned short >, boost::hana::to_impl< unsigned long long, unsigned char >, boost::hana::to_impl< unsigned long long, unsigned int >, boost::hana::to_impl< unsigned long long, unsigned long >, boost::hana::to_impl< unsigned long long, unsigned short >, boost::hana::to_impl< unsigned long, unsigned char >, boost::hana::to_impl< unsigned long, unsigned int >, boost::hana::to_impl< unsigned long, unsigned short >, and boost::hana::to_impl< unsigned short, unsigned char >.