15#ifndef IOX2_BB_INTO_HPP
16#define IOX2_BB_INTO_HPP
44template <
typename SourceType,
typename DestinationType>
49Conversion for the specified types is not implemented!\n \
50Please specialize 'From::from'!\n \
51-------------------------------------------------------------------------\n \
52template <typename SourceType, typename DestinationType>\n \
53constexpr DestinationType From::from(const SourceType&) noexcept;\n \
54-------------------------------------------------------------------------");
104template <
typename SourceType,
typename DestinationType>
119template <
typename DestinationType,
typename SourceType>
121 return from<SourceType, DestinationType>(value);
#define IOX2_MAYBE_UNUSED
IOX2_MAYBE_UNUSED adds the [[gnu::unused]] attribute when it is available for the current compiler or...
constexpr auto into(const SourceType value) noexcept -> typename detail::ExtractIntoType< DestinationType >::TargetType
Converts a value of type SourceType to a corresponding value of type DestinationType....
constexpr auto from(const SourceType value) noexcept -> typename detail::ExtractIntoType< DestinationType >::TargetType
Converts a value of type SourceType to a corresponding value of type DestinationType....
constexpr bool always_false_v
Helper value to bind a static_assert to a type.
static constexpr auto from(const SourceType &value IOX2_MAYBE_UNUSED) noexcept
Helper struct to indicate a lossy conversion, e.g. from an unbounded type into a bounded type.