summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std/tuple
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-27 16:33:01 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-27 16:33:01 +0000
commitb57647c87efbb165071dbe8678aaf0c68bdafc26 (patch)
tree7a2e34e7bfa008be469775c38b613e29a072ff84 /libstdc++-v3/include/std/tuple
parent258aff7e47f290954df3f2be5e67d5649e043951 (diff)
downloadppe42-gcc-b57647c87efbb165071dbe8678aaf0c68bdafc26.tar.gz
ppe42-gcc-b57647c87efbb165071dbe8678aaf0c68bdafc26.zip
N3887 Consistent Metafunction Aliases
* include/std/tuple (tuple_element_t): Define. * testsuite/20_util/tuple/tuple_element.cc: Change to compile-only test. * testsuite/20_util/tuple/tuple_element_t.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@209840 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/tuple')
-rw-r--r--libstdc++-v3/include/std/tuple5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple
index 47a10ec75fc..03d87d77aa0 100644
--- a/libstdc++-v3/include/std/tuple
+++ b/libstdc++-v3/include/std/tuple
@@ -710,6 +710,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
add_cv<typename tuple_element<__i, _Tp>::type>::type type;
};
+#if __cplusplus > 201103L
+ template<std::size_t __i, typename _Tp>
+ using tuple_element_t = typename tuple_element<__i, _Tp>::type;
+#endif
+
/// Finds the size of a given tuple type.
template<typename _Tp>
struct tuple_size;
OpenPOWER on IntegriCloud