Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F10710973
type_pair.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
1 KB
Referenced Files
None
Subscribers
None
type_pair.hpp
View Options
/**************************************************************************//**
*
* \file rosa/support/type_pair.hpp
*
* \author David Juhasz (david.juhasz@tuwien.ac.at)
*
* \date 2017
*
* \brief Facilities for types representing pairs of types.
*
* \note This implementation is based on the `type_pair` implementation of CAF.
* \todo Check license.
*
******************************************************************************/
#ifndef ROSA_SUPPORT_TYPE_PAIR_HPP
#define ROSA_SUPPORT_TYPE_PAIR_HPP
namespace
rosa
{
/// A pair of types.
///
/// \tparam F the first type
/// \tparam S the second type
template
<
typename
F
,
typename
S
>
struct
TypePair
{
using
First
=
F
;
///< The first type.
using
Second
=
S
;
///< The second type.
};
/// Turns two types into a `rosa::TypePair`
///
/// Turning two types `F` and `S` into `rosa::TypePair<F, S>` is as simple as
/// \code
/// typename ToTypePair<F, S>::Type
/// \endcode
///
/// \tparam F the fist type
/// \tparam S the second type
template
<
typename
F
,
typename
S
>
struct
ToTypePair
{
using
Type
=
TypePair
<
F
,
S
>
;
///< The `rosa::TypePair`.
};
}
// End namespace rosa
#endif
// ROSA_SUPPORT_TYPE_PAIR_HPP
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, May 31, 5:16 PM (20 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
323065
Default Alt Text
type_pair.hpp (1 KB)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment