tuples  0.1
 All Classes Namespaces Files Functions Typedefs Friends Macros
Classes | Typedefs | Functions
tuples Namespace Reference

Classes

class  tagged_tuple
 A compile time associative container between structs and data. More...
 
struct  tuple_size
 Has a member variable value equal to the number of elements in a tagged_tuple. More...
 

Typedefs

template<class Tag >
using tag_type = typename Tag::type
 Metafunction that returns the type of the Tag. More...
 

Functions

template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool operator== (tagged_tuple< LTags...> const &lhs, tagged_tuple< RTags...> const &rhs) noexcept(noexcept(tuples_detail::tuple_equal_impl(lhs, rhs)))
 
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool operator!= (tagged_tuple< LTags...> const &lhs, tagged_tuple< RTags...> const &rhs) noexcept(noexcept(lhs==rhs))
 
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool operator< (tagged_tuple< LTags...> const &lhs, tagged_tuple< RTags...> const &rhs) noexcept(noexcept(tuples_detail::tuple_less_impl(lhs, rhs)))
 
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool operator> (tagged_tuple< LTags...> const &lhs, tagged_tuple< RTags...> const &rhs) noexcept(noexcept(rhs< lhs))
 
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool operator<= (tagged_tuple< LTags...> const &lhs, tagged_tuple< RTags...> const &rhs) noexcept(noexcept(rhs< lhs))
 
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool operator>= (tagged_tuple< LTags...> const &lhs, tagged_tuple< RTags...> const &rhs) noexcept(noexcept(lhs< rhs))
 
template<class... Tags, typename std::enable_if< tuples_detail::all< tuples_detail::is_swappable_with< tuples_detail::tagged_tuple_leaf< Tags >, tuples_detail::tagged_tuple_leaf< Tags >>::value...>::value >::type * = nullptr>
void swap (tagged_tuple< Tags...> &lhs, tagged_tuple< Tags...> &rhs) noexcept(tuples_detail::all< tuples_detail::is_nothrow_swappable_with< tuples_detail::tagged_tuple_leaf< Tags >, tuples_detail::tagged_tuple_leaf< Tags >>::value...>::value)
 
template<class... Tags>
std::ostream & operator<< (std::ostream &os, const tagged_tuple< Tags...> &t)
 
template<class Tag , class... Tags>
constexpr const Tag::type & get (const tagged_tuple< Tags...> &t) noexcept
 Retrieve the element with tag Tag from the tagged_tuple t More...
 
template<class Tag , class... Tags>
constexpr Tag::type & get (tagged_tuple< Tags...> &t) noexcept
 Retrieve the element with tag Tag from the tagged_tuple t More...
 
template<class Tag , class... Tags>
constexpr const Tag::type && get (const tagged_tuple< Tags...> &&t) noexcept
 Retrieve the element with tag Tag from the tagged_tuple t More...
 
template<class Tag , class... Tags>
constexpr Tag::type && get (tagged_tuple< Tags...> &&t) noexcept
 Retrieve the element with tag Tag from the tagged_tuple t More...
 

Typedef Documentation

template<class Tag >
using tuples::tag_type = typedef typename Tag::type

Metafunction that returns the type of the Tag.

Function Documentation

template<class Tag , class... Tags>
constexpr const Tag::type & tuples::get ( const tagged_tuple< Tags...> &  t)
inlinenoexcept

Retrieve the element with tag Tag from the tagged_tuple t

template<class Tag , class... Tags>
constexpr Tag::type & tuples::get ( tagged_tuple< Tags...> &  t)
inlinenoexcept

Retrieve the element with tag Tag from the tagged_tuple t

template<class Tag , class... Tags>
constexpr const Tag::type && tuples::get ( const tagged_tuple< Tags...> &&  t)
inlinenoexcept

Retrieve the element with tag Tag from the tagged_tuple t

template<class Tag , class... Tags>
constexpr Tag::type && tuples::get ( tagged_tuple< Tags...> &&  t)
inlinenoexcept

Retrieve the element with tag Tag from the tagged_tuple t

template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool tuples::operator!= ( tagged_tuple< LTags...> const &  lhs,
tagged_tuple< RTags...> const &  rhs 
)
noexcept
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool tuples::operator< ( tagged_tuple< LTags...> const &  lhs,
tagged_tuple< RTags...> const &  rhs 
)
noexcept
template<class... Tags>
std::ostream& tuples::operator<< ( std::ostream &  os,
const tagged_tuple< Tags...> &  t 
)
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool tuples::operator<= ( tagged_tuple< LTags...> const &  lhs,
tagged_tuple< RTags...> const &  rhs 
)
noexcept
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool tuples::operator== ( tagged_tuple< LTags...> const &  lhs,
tagged_tuple< RTags...> const &  rhs 
)
noexcept
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool tuples::operator> ( tagged_tuple< LTags...> const &  lhs,
tagged_tuple< RTags...> const &  rhs 
)
noexcept
template<class... LTags, class... RTags, typename std::enable_if< sizeof...(LTags)==sizeof...(RTags)>::type * = nullptr>
constexpr bool tuples::operator>= ( tagged_tuple< LTags...> const &  lhs,
tagged_tuple< RTags...> const &  rhs 
)
noexcept
template<class... Tags, typename std::enable_if< tuples_detail::all< tuples_detail::is_swappable_with< tuples_detail::tagged_tuple_leaf< Tags >, tuples_detail::tagged_tuple_leaf< Tags >>::value...>::value >::type * = nullptr>
void tuples::swap ( tagged_tuple< Tags...> &  lhs,
tagged_tuple< Tags...> &  rhs 
)
noexcept