[cfe-commits] [libcxx] r111546 - in /libcxx/trunk: include/tuple include/utility test/utilities/tuple/tuple.tuple/tuple.range/ test/utilities/utility/pairs/pair.range/

Howard Hinnant hhinnant at apple.com
Thu Aug 19 12:15:54 PDT 2010


Author: hhinnant
Date: Thu Aug 19 14:15:54 2010
New Revision: 111546

URL: http://llvm.org/viewvc/llvm-project?rev=111546&view=rev
Log:
GB 85, GB 87

Removed:
    libcxx/trunk/test/utilities/tuple/tuple.tuple/tuple.range/
    libcxx/trunk/test/utilities/utility/pairs/pair.range/
Modified:
    libcxx/trunk/include/tuple
    libcxx/trunk/include/utility

Modified: libcxx/trunk/include/tuple
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/tuple?rev=111546&r1=111545&r2=111546&view=diff
==============================================================================
--- libcxx/trunk/include/tuple (original)
+++ libcxx/trunk/include/tuple Thu Aug 19 14:15:54 2010
@@ -103,12 +103,6 @@
 template <class... Types>
   void swap(tuple<Types...>& x, tuple<Types...>& y);
 
-template <class InputIterator>
-  InputIterator begin(const std::tuple<InputIterator, InputIterator>& t);
-
-template <class InputIterator>
-  InputIterator end(const std::tuple<InputIterator, InputIterator>& t);
-
 }  // std
 
 */
@@ -793,22 +787,6 @@
 struct uses_allocator<tuple<_Tp...>, _Alloc>
     : true_type {};
 
-template <class _InputIterator>
-inline
-_InputIterator
-begin(const std::tuple<_InputIterator, _InputIterator>& __t)
-{
-    return get<0>(__t);
-}
-
-template <class _InputIterator>
-inline
-_InputIterator
-end(const std::tuple<_InputIterator, _InputIterator>& __t)
-{
-    return get<1>(__t);
-}
-
 template <class _T1, class _T2>
 template <class... _Args1, class... _Args2, size_t ..._I1, size_t ..._I2>
 inline _LIBCPP_INLINE_VISIBILITY

Modified: libcxx/trunk/include/utility
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/utility?rev=111546&r1=111545&r2=111546&view=diff
==============================================================================
--- libcxx/trunk/include/utility (original)
+++ libcxx/trunk/include/utility Thu Aug 19 14:15:54 2010
@@ -100,11 +100,6 @@
     const typename const tuple_element<I, std::pair<T1, T2> >::type&
     get(const std::pair<T1, T2>&);
 
-template <class InputIterator>
-    InputIterator begin(const std::pair<InputIterator, InputIterator>& p);
-template <class InputIterator>
-    InputIterator end(const std::pair<InputIterator, InputIterator>& p);
-
 }  // std
 
 */
@@ -462,22 +457,6 @@
 
 #endif
 
-template <class _InputIterator>
-_LIBCPP_INLINE_VISIBILITY inline
-_InputIterator
-begin(const pair<_InputIterator, _InputIterator>& __p)
-{
-    return __p.first;
-}
-
-template <class _InputIterator>
-_LIBCPP_INLINE_VISIBILITY inline
-_InputIterator
-end(const pair<_InputIterator, _InputIterator>& __p)
-{
-    return __p.second;
-}
-
 _LIBCPP_END_NAMESPACE_STD
 
 #endif  // _LIBCPP_UTILITY





More information about the cfe-commits mailing list