tuples  0.1
 All Classes Namespaces Files Functions Typedefs Friends Macros
Classes | Namespaces | Macros | Typedefs | Functions
tagged_tuple.hpp File Reference
#include <cstddef>
#include <functional>
#include <ostream>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

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

Namespaces

 tuples
 

Macros

#define TUPLES_LIB_CONSTEXPR_CXX_14
 

Typedefs

template<class Tag >
using tuples::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 tuples::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 tuples::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 tuples::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 tuples::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 tuples::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 tuples::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 tuples::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 & tuples::operator<< (std::ostream &os, const tagged_tuple< Tags...> &t)
 
template<class Tag , class... Tags>
constexpr const Tag::type & tuples::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 & tuples::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 && tuples::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 && tuples::get (tagged_tuple< Tags...> &&t) noexcept
 Retrieve the element with tag Tag from the tagged_tuple t More...
 

Detailed Description

Macro Definition Documentation

#define TUPLES_LIB_CONSTEXPR_CXX_14