iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
into.hpp File Reference

Go to the source code of this file.

Classes

struct  iox2::bb::Lossy< D >
 Helper struct to indicate a lossy conversion, e.g. from an unbounded type into a bounded type. More...
 
struct  iox2::bb::detail::ExtractIntoType< T >
 Helper struct to get the actual destination type 'T' for 'into' with an additional indirection like 'into<Lossy<T>>'. More...
 
struct  iox2::bb::detail::ExtractIntoType< Lossy< T > >
 Helper struct to get the actual destination type 'T' for 'into<Lossy<T>>'. More...
 
struct  iox2::bb::From< SourceType, DestinationType >
 

Namespaces

namespace  iox2
 
namespace  iox2::bb
 
namespace  iox2::bb::detail
 

Functions

template<typename SourceType , typename DestinationType >
constexpr auto iox2::bb::from (const SourceType value) noexcept -> typename detail::ExtractIntoType< DestinationType >::TargetType
 Converts a value of type SourceType to a corresponding value of type DestinationType. This function needs to be specialized by the user for the types to be converted. If a partial specialization is needed, please have a look at 'From'.
 
template<typename DestinationType , typename SourceType >
constexpr auto iox2::bb::into (const SourceType value) noexcept -> typename detail::ExtractIntoType< DestinationType >::TargetType
 Converts a value of type SourceType to a corresponding value of type DestinationType. This is a convenience function which is automatically available when 'from' is implemented. This function shall therefore not be specialized but always the 'from' function.