Skip to content

Commit

Permalink
Ordered, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Oct 18, 2015
1 parent 2c3aceb commit 929e965
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions include/tao/seq/tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@ namespace tao

// 20.4.2.4 Tuple creation functions [tuple.creation]

// ignore helper
namespace impl
{
struct ignore_t
{
template< typename U >
ignore_t& operator=( U&& )
{
return *this;
}
};
}

// ignore
impl::ignore_t ignore;

// make_tuple helper
namespace impl
{
Expand Down Expand Up @@ -237,15 +253,6 @@ namespace tao

template< typename T, typename... Ts >
using index_of = index_of_impl< seq::index_sequence_for< Ts... >, T, Ts... >;

struct ignore_t
{
template< typename U >
ignore_t& operator=( U&& )
{
return *this;
}
};
}

// get<T>
Expand All @@ -270,9 +277,6 @@ namespace tao
return get< impl::index_of< T, Ts... >::value >( std::move( t ) );
}

// ignore
impl::ignore_t ignore;

// 20.4.2.7 Relational operators [tuple.rel]

// operators helper
Expand Down

0 comments on commit 929e965

Please sign in to comment.